<table><tr><td style="">graesslin created this revision.<br />graesslin added reviewers: KWin, Plasma on Wayland.<br />Restricted Application added subscribers: kwin, plasma-devel.<br />Restricted Application added projects: Plasma on Wayland, KWin.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D3093" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>There are several effects (screenshot, zoom) which need access to the<br />
cursor image and cursor hotspot. So far these effects used X11<br />
unconditionally to get the cursor which obviously does not work on<br />
Wayland.</p>
<p>This change adds a new class PlatformCursorImage to kwinglobals which<br />
wraps what a cursor is (image and hotspot) and adds a new virtual method<br />
to Platform to provide such a PlatformCursorImage. By default it's the<br />
cursor image the Platform tracks. On X11/standalone platform this new<br />
virtual method is overriden and provides a PlatformCursorImage from X11<br />
using the code previously used in screenshot effect.</p>
<p>Screenshot effect and zoom are adjusted to use the new API instead of<br />
X11.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Zoom effect tested on Wayland, now gets the proper cursor icon.<br />
X11 functionality not yet tested.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWIN KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>platform-cursor-image</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3093" rel="noreferrer">https://phabricator.kde.org/D3093</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/mock_effectshandler.h<br />
effects.cpp<br />
effects.h<br />
effects/screenshot/screenshot.cpp<br />
effects/zoom/zoom.cpp<br />
libkwineffects/CMakeLists.txt<br />
libkwineffects/kwineffects.h<br />
libkwineffects/kwinglobals.h<br />
platform.cpp<br />
platform.h<br />
plugins/platforms/x11/standalone/x11_platform.cpp<br />
plugins/platforms/x11/standalone/x11_platform.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma on Wayland<br /><strong>Cc: </strong>plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas<br /></div>