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
This commit is contained in:
ivan tkachenko 2022-08-02 17:38:29 +03:00
parent 97939ceae8
commit aaa5e6fee3
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

@ -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