D8627: [platforms/drm] Properly adjust cursor position on a rotated output
Martin Flöser
noreply at phabricator.kde.org
Thu Nov 2 17:15:47 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 refactors the way how the cursor position on a screen is
calculated. It is changed to a matrix multiplication with the
adjustments for the rotated screen just being additional steps added to
the matrix.
With this calculation I got correct positions for all variants of
scaled, rotated and differently positioned outputs.
REPOSITORY
R108 KWin
BRANCH
drm-cursor-position-rotate
REVISION DETAIL
https://phabricator.kde.org/D8627
AFFECTED FILES
plugins/platforms/drm/drm_output.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/20171102/a6fb3673/attachment.html>
More information about the Plasma-devel
mailing list