kwin/plugins/platforms
Martin Gräßlin d0c488f4a2 Announce output changes to Wayland for platforms not handling outputs
Summary:
Most platforms like the nested and virtual do not handle the outputs
themselves and WaylandServer announces the Outputs to Wayland.

So far this was static: at startup it got announced once to Wayland
and any changes were not catched.

This change makes WaylandServer listen to changes to the Screens and
sync them to Wayland.

Unfortunately KWin's internal Screen information is not sufficient to
properly synchronize this to Wayland and also Wayland by not supporting
adding/removing modes does not help.

Thus the solution implemented here is to add new outputs reflecting the
changes and then removing the old ones. This creates situations with more
outputs being present than actually there, but prevents that there are
no outputs at all.

Test Plan: Auto test added which verifies this for the virtual platform

Reviewers: #kwin, #plasma_on_wayland

Subscribers: plasma-devel, kwin

Tags: #plasma_on_wayland, #kwin

Differential Revision: https://phabricator.kde.org/D2233
2016-07-20 13:53:02 +02:00
..
drm [platforms/drm] Add better warnings in DrmBuffer if things fail 2016-07-15 08:37:17 +02:00
fbdev [platforms/fbdev] Handle error conditions more gracefully 2016-07-13 10:11:38 +02:00
hwcomposer [plugins/hwcomposer] Use an RGBA_8888 format for rendering surface 2016-07-20 13:51:46 +02:00
virtual Announce output changes to Wayland for platforms not handling outputs 2016-07-20 13:53:02 +02:00
wayland [platforms/wayland] Use XdgShell if available and prefer it 2016-07-20 07:43:59 +02:00
x11 [platforms/x11] Add more warning on failure to create EGL context 2016-07-15 08:44:31 +02:00
CMakeLists.txt