overview: Fix drag and drop hotspot

The hotspot should be relative to the window item being dragged, the
scale applies to both.
wilder/Plasma/6.2
David Edmundson 2 years ago
parent e4ec81f095
commit d72f677271
  1. 4
      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)

Loading…
Cancel
Save