From 3b550858961195712785238dfc4466276d8ce2d1 Mon Sep 17 00:00:00 2001 From: Felix Gerking <felix.gerking@garz-fricke.com> Date: Tue, 24 May 2022 14:25:24 +0200 Subject: [PATCH] Rotation: Fix 90 and 270 degree screen rotation Now the applications are also centered correctly at 90 and 270 degrees rotation. BCS 746-000787 --- qml/Screen.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qml/Screen.qml b/qml/Screen.qml index 2dbacdb..c7851c9 100644 --- a/qml/Screen.qml +++ b/qml/Screen.qml @@ -74,9 +74,10 @@ WaylandOutput { WaylandMouseTracker { id: mouseTracker - anchors.fill: parent + anchors.centerIn: parent windowSystemCursorEnabled: true - rotation: 0 + width: (rotation==90 || rotation==270) ? parent.height : parent.width + height: (rotation==90 || rotation==270) ? parent.width : parent.height Rectangle { anchors.fill: parent -- GitLab