4bfeeb3084
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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
drm.json | ||
drm_backend.cpp | ||
drm_backend.h | ||
drm_buffer.cpp | ||
drm_buffer.h | ||
drm_buffer_gbm.cpp | ||
drm_buffer_gbm.h | ||
drm_inputeventfilter.cpp | ||
drm_inputeventfilter.h | ||
drm_object.cpp | ||
drm_object.h | ||
drm_object_connector.cpp | ||
drm_object_connector.h | ||
drm_object_crtc.cpp | ||
drm_object_crtc.h | ||
drm_object_plane.cpp | ||
drm_object_plane.h | ||
drm_output.cpp | ||
drm_output.h | ||
drm_pointer.h | ||
egl_gbm_backend.cpp | ||
egl_gbm_backend.h | ||
gbm_surface.cpp | ||
gbm_surface.h | ||
logging.cpp | ||
logging.h | ||
scene_qpainter_drm_backend.cpp | ||
scene_qpainter_drm_backend.h | ||
screens_drm.cpp | ||
screens_drm.h |