kwin/plugins/platforms
Martin Flöser 4bfeeb3084 [platforms/drm] Fix cursor hotspot for inverted landscape rotation
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

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D8668
2017-11-06 16:48:44 +01:00
..
drm [platforms/drm] Fix cursor hotspot for inverted landscape rotation 2017-11-06 16:48:44 +01:00
fbdev [platforms/fbdev] Support for RGBA8888 color format 2017-10-23 13:44:53 +05:30
hwcomposer [platforms/hwcomposer] Set value of surfaceDamage.numRects to 0 2017-11-02 10:21:37 +05:30
virtual Add a pure virtual method to Platform to describe the supported compositors 2017-10-18 21:19:43 +02:00
wayland Add a pure virtual method to Platform to describe the supported compositors 2017-10-18 21:19:43 +02:00
x11 Merge branch 'Plasma/5.11' 2017-11-05 10:46:53 +01:00
CMakeLists.txt Hide the Linux specific parts behind check for headers 2017-07-24 16:19:27 +02:00