@@ -72,6 +72,8 @@ FocusScope {
73 readonly property Item clientAreaItem: applicationWindow
73 readonly property Item clientAreaItem: applicationWindow
75+ property alias altDragEnabled: altDragHandler.enabled
75 signal closeClicked()
77 signal closeClicked()
76 signal maximizeClicked()
78 signal maximizeClicked()
77 signal maximizeHorizontallyClicked()
79 signal maximizeHorizontallyClicked()
@@ -267,6 +269,7 @@ FocusScope {
267 acceptedButtons: Qt.LeftButton
269 acceptedButtons: Qt.LeftButton
268 property bool dragging: false
270 property bool dragging: false
269 cursorShape: undefined // don't interfere with the cursor shape set by the underlying MirSurfaceItem
271 cursorShape: undefined // don't interfere with the cursor shape set by the underlying MirSurfaceItem
270 onPressed: {
273 onPressed: {
271 if (mouse.button == Qt.LeftButton && mouse.modifiers == Qt.AltModifier) {
274 if (mouse.button == Qt.LeftButton && mouse.modifiers == Qt.AltModifier) {
272 root.decorationPressed(); // to raise it
275 root.decorationPressed(); // to raise it