From d72f677271b3f385926fb89d7a0f7ae24b5fdb9a Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 11 Sep 2024 23:16:07 +0200 Subject: [PATCH] overview: Fix drag and drop hotspot The hotspot should be relative to the window item being dragged, the scale applies to both. --- src/plugins/private/qml/WindowHeapDelegate.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/private/qml/WindowHeapDelegate.qml b/src/plugins/private/qml/WindowHeapDelegate.qml index 65dcc68cac..96d9f0e7a2 100644 --- a/src/plugins/private/qml/WindowHeapDelegate.qml +++ b/src/plugins/private/qml/WindowHeapDelegate.qml @@ -136,8 +136,8 @@ ExpoCell { Drag.supportedActions: Qt.MoveAction Drag.source: thumb.window Drag.hotSpot: Qt.point( - thumb.activeDragHandler.centroid.pressPosition.x * thumb.targetScale, - thumb.activeDragHandler.centroid.pressPosition.y * thumb.targetScale) + thumb.activeDragHandler.centroid.pressPosition.x, + thumb.activeDragHandler.centroid.pressPosition.y) Drag.keys: ["kwin-window"] onXChanged: effect.checkItemDraggedOutOfScreen(thumbSource)