From dda45a7829159494783ce5a13b11c673eeebdb8f Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Wed, 24 Nov 2021 15:08:33 +0100 Subject: [PATCH] Overview: Only trigger middle click close with mouse/pen For some reason, while touch doesn't have a middle button, the taphandler for middle click close still triggered on tap. So make it explicitly only support mouse/pen so we exclude touch events. BUG: 445755 --- src/effects/overview/qml/WindowHeap.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/effects/overview/qml/WindowHeap.qml b/src/effects/overview/qml/WindowHeap.qml index 8c7f9db462..b91e1d7ca4 100644 --- a/src/effects/overview/qml/WindowHeap.qml +++ b/src/effects/overview/qml/WindowHeap.qml @@ -204,6 +204,7 @@ FocusScope { } TapHandler { + acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen acceptedButtons: Qt.MiddleButton onTapped: thumb.client.closeWindow() }