on xenial help sign in
disable altDrag feature outside windowed mode
e87b437Lukáš 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()
@@ -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
271+ visible: enabled
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
qml/Stage/Stage.qml+1
@@ -1598,6 +1598,7 @@ FocusScope {
1598 height: implicitHeight
1598 height: implicitHeight
1599 highlightSize: windowInfoItem.iconMargin / 2
1599 highlightSize: windowInfoItem.iconMargin / 2
1600 boundsItem: boundariesForWindowPlacement
1600 boundsItem: boundariesForWindowPlacement
1601+ altDragEnabled: root.mode == "windowed"
1601
1602
1602 requestedWidth: appDelegate.requestedWidth
1603 requestedWidth: appDelegate.requestedWidth
1603 requestedHeight: appDelegate.requestedHeight
1604 requestedHeight: appDelegate.requestedHeight