From 46441998a39f8ba78b5f2154231508f8b252140d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 29 Jul 2012 22:03:11 +0200 Subject: [PATCH] Do not accept left mouse press events on titlebar in Aurorae Accepting the mouse events breaks moving the window by dragging the title bar. The reason is that it eats the mouse event and by that never reaches KWin core to perform the movement. Other mouse buttons need to be accepted for handling the window operations. Also we need to listen in general to left mouse button for the double click operation. BUG: 304249 FIXED-IN: 4.9.1 REVIEW: 105784 --- clients/aurorae/src/qml/aurorae.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clients/aurorae/src/qml/aurorae.qml b/clients/aurorae/src/qml/aurorae.qml index 00982b4891..f1538736eb 100644 --- a/clients/aurorae/src/qml/aurorae.qml +++ b/clients/aurorae/src/qml/aurorae.qml @@ -155,7 +155,13 @@ Decoration { acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton anchors.fill: parent onDoubleClicked: decoration.titlebarDblClickOperation() - onPressed: decoration.titlePressed(mouse.button, mouse.buttons) + onPressed: { + if (mouse.button == Qt.LeftButton) { + mouse.accepted = false; + } else { + decoration.titlePressed(mouse.button, mouse.buttons); + } + } onReleased: decoration.titleReleased(mouse.button, mouse.buttons) } Behavior on color {