Correctly map NaturalX/Y to scene coordinates

being naturalx something that needs to map to the actual geometry of the window which is in absolute coordinates but mapped to a view which geometry correspond to the one of one particular screen (plus the layout the thumbnail lives in has its own geometry in the scene)
This commit is contained in:
Marco Martin 2022-04-19 14:37:06 +02:00
parent 7aad5df7d9
commit 871f8d0b91

View file

@ -169,8 +169,8 @@ FocusScope {
id: cell id: cell
layout: expoLayout layout: expoLayout
enabled: !thumb.hidden enabled: !thumb.hidden
naturalX: thumb.client.x naturalX: thumb.client.x - targetScreen.geometry.x - expoLayout.Kirigami.ScenePosition.x
naturalY: thumb.client.y naturalY: thumb.client.y - targetScreen.geometry.y - expoLayout.Kirigami.ScenePosition.y
naturalWidth: thumb.client.width naturalWidth: thumb.client.width
naturalHeight: thumb.client.height naturalHeight: thumb.client.height
persistentKey: thumb.client.internalId persistentKey: thumb.client.internalId