kwin/src/wayland/tests
Martin Gräßlin d92592a291 Support passing generic QIcon through PlasmaWindow interface
Summary:
Especially for Xwayland windows the compositor might not have a themed
icon name. Resulting in a task manager not having dedicated icons for
Xwayland windows.

This change deprecates the way how a compositor is supposed to set the
window icon. Instead of passing the themed icon name, it is now supposed to
pass the QIcon. In case it's a themed icon the existing way to pass to
the client is used.

Otherwise a new event is used to inform the client that there is an icon
- no data is transmitted at this point. The client can then create a
file descriptor and pass it to the compositor. The compositor serializes
the icon into the file descriptor and the client can read from it. This
all happens transparently on client side there is no api change at all.

The writing and reading of the icon is done in a thread. Due to that
Qt5::Concurrent is now a required dependency instead of an optional
dependency.

Reviewers: #plasma_on_wayland, hein

Subscribers: plasma-devel

Tags: #plasma_on_wayland

Differential Revision: https://phabricator.kde.org/D3049
2016-10-17 07:35:21 +02:00
..
CMakeLists.txt Support passing generic QIcon through PlasmaWindow interface 2016-10-17 07:35:21 +02:00
copyclient.cpp Adding a test application for copy 2014-11-12 13:17:26 +01:00
dpmstest.cpp [tests] Add an example for the Dpms interface 2015-09-09 17:46:40 +02:00
paneltest.cpp [tools] Simulate a panel tooltip 2015-09-17 11:50:01 +02:00
pasteclient.cpp Do not include QtModules 2014-12-12 08:32:01 +01:00
plasmasurfacetest.cpp Add a ToolTip role to PlasmaShellSurface 2016-06-29 08:01:26 +02:00
qtwaylandintegrationtest.cpp [client] Create Compositor from QtWayland integration 2015-06-18 03:37:58 +02:00
qtwaylandintegrationtest.h [client] Create Compositor from QtWayland integration 2015-06-18 03:37:58 +02:00
renderingservertest.cpp [tests] Add option to start rootless Xwayland server to renderingservertest 2015-01-09 12:08:23 +01:00
shadowtest.cpp [tests] Use QCoreApplication for ShadowTest 2015-11-18 10:21:36 +01:00
subsurfacetest.cpp [tests] Add a sub-surface test application 2016-03-21 16:03:31 +01:00
touchclienttest.cpp [client] Add Touch 2015-03-25 12:22:05 +01:00
touchclienttest.h [client] Add Touch 2015-03-25 12:22:05 +01:00
waylandservertest.cpp [tests] Install eventDispatcher before creating the QGuiApplication 2015-02-18 09:43:04 +01:00