diff --git a/src/effects/private/qml/WindowHeapDelegate.qml b/src/effects/private/qml/WindowHeapDelegate.qml index fa440e9c3d..0283c84a3c 100644 --- a/src/effects/private/qml/WindowHeapDelegate.qml +++ b/src/effects/private/qml/WindowHeapDelegate.qml @@ -347,14 +347,6 @@ Item { KWinComponents.Workspace.activeClient = thumb.client; thumb.windowHeap.activated(); } - } - - TapHandler { - acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen - acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton - onTapped: { - thumb.windowHeap.windowClicked(thumb.client, eventPoint) - } onPressedChanged: { if (pressed) { var saved = Qt.point(thumbSource.x, thumbSource.y); @@ -369,6 +361,14 @@ Item { } } + TapHandler { + acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen + acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton + onTapped: { + thumb.windowHeap.windowClicked(thumb.client, eventPoint) + } + } + component DragManager : DragHandler { target: null dragThreshold: 0