graesslin created this revision. graesslin added reviewers: KWin, Plasma on Wayland. Restricted Application added subscribers: kwin, plasma-devel. Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY On Wayland per output rendering is performed and paintScreen is invoked for every output. Some effects need the information which output is currently being rendered as otherwise e.g. FBO access could fail. This change adds the current output geometry to ScreenPaintData. On X11 (all outputs one geometry) this information is not set and a null rect is returned. That way the effects can also easily check which rendering mode is used. REPOSITORY rKWIN KWin BRANCH screen-paint-data-current-output REVISION DETAIL https://phabricator.kde.org/D3058 AFFECTED FILES autotests/test_screen_paint_data.cpp libkwineffects/kwineffects.cpp libkwineffects/kwineffects.h scene.cpp scene.h scene_opengl.cpp EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #kwin, #plasma_on_wayland Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas