kwin/effects/backgroundcontrast
Martin Flöser 90e77a939a [effects] Support xcbConnectionChanged for support properties
Summary:
Several effects announce a support property atom on the root window. This
change forwards the KWin::Application's signal that the xcbConnection
changed to the EffectsHandler so that the effects can respond to it.

All effects which announce a support property connect to this new signal
and re-announce the property. In case the xcb connection died (future
XWayland crashing case) it is set to XCB_ATOM_NONE by that. In case the
xcb connection got created (future delayed XWayland startup) the atom is
set to the proper value.

In addition all usages of the support properties are guarded, so that no
nonesense actions are performed if the support property is XCB_ATOM_NONE.

Test Plan: Only compile tested as we don't have XFree KWin yet

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D7761
2017-09-12 18:53:31 +02:00
..
.directory stub for the background contrast effect 2014-01-23 14:44:00 +01:00
CMakeLists.txt [effects] Drop the .desktop files for the BuiltIn Effects 2014-04-28 13:52:43 +02:00
backgroundcontrast.kdev4 stub for the background contrast effect 2014-01-23 14:44:00 +01:00
contrast.cpp [effects] Support xcbConnectionChanged for support properties 2017-09-12 18:53:31 +02:00
contrast.h store contrast matrix per-window 2017-03-15 12:02:30 +01:00
contrastshader.cpp [effects] Support GLES 3 in Blur and BackgroundContrast 2015-11-09 16:22:32 +01:00
contrastshader.h [effects/backgroundcontrast] Remove ContrastShader::pixelSizeLocation 2017-07-31 18:00:17 +02:00