on xenial help sign in
Disable altDrag feature outside windowed mode
89f8610Lukáš Tinkl
qml/Stage/DecoratedWindow.qml+3
@@ -72,6 +72,8 @@ FocusScope {
72
72
73 readonly property Item clientAreaItem: applicationWindow
73 readonly property Item clientAreaItem: applicationWindow
74
74
75+ property alias altDragEnabled: altDragHandler.enabled
76+
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
272+ visible: enabled
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
qml/Stage/Stage.qml+1
@@ -1620,6 +1620,7 @@ FocusScope {
1620 height: implicitHeight
1620 height: implicitHeight
1621 highlightSize: windowInfoItem.iconMargin / 2
1621 highlightSize: windowInfoItem.iconMargin / 2
1622 boundsItem: boundariesForWindowPlacement
1622 boundsItem: boundariesForWindowPlacement
1623+ altDragEnabled: root.mode == "windowed"
1623
1624
1624 requestedWidth: appDelegate.requestedWidth
1625 requestedWidth: appDelegate.requestedWidth
1625 requestedHeight: appDelegate.requestedHeight
1626 requestedHeight: appDelegate.requestedHeight