on xenial help sign in
disable altDrag feature outside windowed mode
commite87b437ecaeefe0e6b98ed7d0f4adf31bcbffeaa authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 17 Mar 2017, 13:06 (10 years ago) parent593d500
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()
@@ -266,6 +268,7 @@ FocusScope {
266268 acceptedButtons: Qt.LeftButton
267269 property bool dragging: false
268270 cursorShape: undefined // don't interfere with the cursor shape set by the underlying MirSurfaceItem
271+ visible: enabled
269272 onPressed: {
270273 if (mouse.button == Qt.LeftButton && mouse.modifiers == Qt.AltModifier) {
271274 root.decorationPressed(); // to raise it
qml/Stage/Stage.qml+1
@@ -1598,6 +1598,7 @@ FocusScope {
15981598 height: implicitHeight
15991599 highlightSize: windowInfoItem.iconMargin / 2
16001600 boundsItem: boundariesForWindowPlacement
1601+ altDragEnabled: root.mode == "windowed"
16011602
16021603 requestedWidth: appDelegate.requestedWidth
16031604 requestedHeight: appDelegate.requestedHeight