From 871f8d0b911ba4533860872663c204c396d8b2e9 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 19 Apr 2022 14:37:06 +0200 Subject: [PATCH] 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) --- src/effects/private/qml/WindowHeap.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/private/qml/WindowHeap.qml b/src/effects/private/qml/WindowHeap.qml index 7c3ef0aae0..133895e409 100644 --- a/src/effects/private/qml/WindowHeap.qml +++ b/src/effects/private/qml/WindowHeap.qml @@ -169,8 +169,8 @@ FocusScope { id: cell layout: expoLayout enabled: !thumb.hidden - naturalX: thumb.client.x - naturalY: thumb.client.y + naturalX: thumb.client.x - targetScreen.geometry.x - expoLayout.Kirigami.ScenePosition.x + naturalY: thumb.client.y - targetScreen.geometry.y - expoLayout.Kirigami.ScenePosition.y naturalWidth: thumb.client.width naturalHeight: thumb.client.height persistentKey: thumb.client.internalId