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