@@ -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()
@@ -266,6 +268,7 @@ FocusScope {
266 acceptedButtons: Qt.LeftButton
268 acceptedButtons: Qt.LeftButton
267 property bool dragging: false
269 property bool dragging: false
268 cursorShape: undefined // don't interfere with the cursor shape set by the underlying MirSurfaceItem
270 cursorShape: undefined // don't interfere with the cursor shape set by the underlying MirSurfaceItem
269 onPressed: {
272 onPressed: {
270 if (mouse.button == Qt.LeftButton && mouse.modifiers == Qt.AltModifier) {
273 if (mouse.button == Qt.LeftButton && mouse.modifiers == Qt.AltModifier) {
271 root.decorationPressed(); // to raise it
274 root.decorationPressed(); // to raise it