D8668: [platforms/drm] Fix cursor hotspot for inverted landscape rotation
Martin Flöser
noreply at phabricator.kde.org
Sun Nov 5 16:14:25 UTC 2017
graesslin created this revision.
graesslin added reviewers: KWin, Plasma.
Restricted Application added a project: KWin.
Restricted Application added subscribers: kwin, plasma-devel.
REVISION SUMMARY
This change fixes the hotspot calculation by introducing a dedicated
matrix to map the hotspot.
To better test the hotspot a small test application is added. The app
renders a red point at the cursor position and uses a cross for cursor
with the hotspot position being transparent. So if KWin renders the
cursor at the correct position a red point is visible in the center of
the cross. The test app supports several cursor hotspot positions:
- center (default)
- top left
- top right
- bottom right
- bottom left
To switch between the variants press the space key.
TEST PLAN
Rotated screen, used test app to verify the hotspot is
correct. Also scaled display, still correct
REPOSITORY
R108 KWin
BRANCH
drm-cursor-hotspot
REVISION DETAIL
https://phabricator.kde.org/D8668
AFFECTED FILES
plugins/platforms/drm/drm_output.cpp
tests/CMakeLists.txt
tests/cursorhotspottest.cpp
To: graesslin, #kwin, #plasma
Cc: plasma-devel, kwin, bwowk, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171105/92ca4496/attachment.html>
More information about the Plasma-devel
mailing list