From 13dd31d98a523e3e66f780a5602ca3fdac302f67 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 11 May 2022 17:04:36 +0200 Subject: [PATCH] effects/windowview: allow closing windows with touch --- src/effects/private/qml/WindowHeap.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/effects/private/qml/WindowHeap.qml b/src/effects/private/qml/WindowHeap.qml index 0c517af6f5..b5ac398fc5 100644 --- a/src/effects/private/qml/WindowHeap.qml +++ b/src/effects/private/qml/WindowHeap.qml @@ -335,7 +335,7 @@ FocusScope { component DragManager : DragHandler { id: dragHandler - enabled: heap.dragEnabled + enabled: heap.dragEnabled || heap.supportsCloseWindows target: null readonly property double targetScale: { @@ -365,6 +365,7 @@ FocusScope { id: dragHandler readonly property double targetOpacity: 1 acceptedDevices: PointerDevice.Mouse | PointerDevice.TouchPad | PointerDevice.Stylus + enabled: heap.dragEnabled } DragManager { id: touchDragHandler