From 6abce1529a33656ff7b9fb1264d3cca2ed1c062d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 6 Jun 2022 11:39:28 +0000 Subject: [PATCH] Put the hostpot as the press position we should drop the window on the desktop under the cursor, not under the center of the thumbnail BUG:454584 --- src/effects/private/qml/WindowHeap.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/effects/private/qml/WindowHeap.qml b/src/effects/private/qml/WindowHeap.qml index ac902e97d2..7715942f2c 100644 --- a/src/effects/private/qml/WindowHeap.qml +++ b/src/effects/private/qml/WindowHeap.qml @@ -122,7 +122,9 @@ FocusScope { Drag.active: thumb.activeDragHandler.active Drag.source: thumb.client - Drag.hotSpot: Qt.point(width * 0.5, height * 0.5) + Drag.hotSpot: Qt.point( + thumb.activeDragHandler.centroid.pressPosition.x * thumb.activeDragHandler.targetScale, + thumb.activeDragHandler.centroid.pressPosition.y * thumb.activeDragHandler.targetScale) states: [ State {