From aaa5e6fee325493d4d1cd0824a808baa0e3192aa Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Tue, 2 Aug 2022 17:38:29 +0300 Subject: [PATCH] effects/private: Fix ExpoLayout reflowing in Desktop Grid while dragging This fixes makes ExpoLayout independent of its position on a screen, which in turn stops it from randomly reflowing while dragging a virtual desktop across desktop grid. It also removes an unwanted animation at the end of activation of desktop grid: desktops move in place and then windows proceed to adjust themselves resulting in a double animation. FIXED-IN: 5.25.5 5.26 --- src/effects/private/qml/WindowHeapDelegate.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/private/qml/WindowHeapDelegate.qml b/src/effects/private/qml/WindowHeapDelegate.qml index 35d0d58949..6d8552bd6a 100644 --- a/src/effects/private/qml/WindowHeapDelegate.qml +++ b/src/effects/private/qml/WindowHeapDelegate.qml @@ -178,8 +178,8 @@ Item { id: cell layout: windowHeap.layout enabled: !thumb.hidden - naturalX: thumb.client.x - targetScreen.geometry.x - windowHeap.layout.Kirigami.ScenePosition.x - naturalY: thumb.client.y - targetScreen.geometry.y - windowHeap.layout.Kirigami.ScenePosition.y + naturalX: thumb.client.x + naturalY: thumb.client.y naturalWidth: thumb.client.width naturalHeight: thumb.client.height persistentKey: thumb.client.internalId