on xenial help sign in
Disable altDrag feature outside windowed mode

Approved by: Albert Astals Cid, Unity8 CI Bot

commit89f86107c7ed447d36d3cceff40c47a48a66adf7 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 21 Mar 2017, 10:54 (10 years ago) parent72172b5e87b437
2 files changed+4
qml/Stage/DecoratedWindow.qml+3 qml/Stage/Stage.qml+1
qml/Stage/DecoratedWindow.qml+3
@@ -72,6 +72,8 @@ FocusScope {
7272
7373 readonly property Item clientAreaItem: applicationWindow
7474
75+ property alias altDragEnabled: altDragHandler.enabled
76+
7577 signal closeClicked()
7678 signal maximizeClicked()
7779 signal maximizeHorizontallyClicked()
@@ -267,6 +269,7 @@ FocusScope {
267269 acceptedButtons: Qt.LeftButton
268270 property bool dragging: false
269271 cursorShape: undefined // don't interfere with the cursor shape set by the underlying MirSurfaceItem
272+ visible: enabled
270273 onPressed: {
271274 if (mouse.button == Qt.LeftButton && mouse.modifiers == Qt.AltModifier) {
272275 root.decorationPressed(); // to raise it
qml/Stage/Stage.qml+1
@@ -1620,6 +1620,7 @@ FocusScope {
16201620 height: implicitHeight
16211621 highlightSize: windowInfoItem.iconMargin / 2
16221622 boundsItem: boundariesForWindowPlacement
1623+ altDragEnabled: root.mode == "windowed"
16231624
16241625 requestedWidth: appDelegate.requestedWidth
16251626 requestedHeight: appDelegate.requestedHeight