on xenial help sign in
don't let the unhandled clicks reach the (obscured) window control buttons
c7d7633Lukáš Tinkl
qml/Panel/Panel.qml+2−2
@@ -220,7 +220,7 @@ Item {
220 sourceComponent: MenuBar {
220 sourceComponent: MenuBar {
221 id: bar
221 id: bar
222 objectName: "menuBar"
222 objectName: "menuBar"
223− anchors.left: parent.left
223+ anchors.left: parent ? parent.left : undefined
224 anchors.margins: units.gu(1)
224 anchors.margins: units.gu(1)
225 height: menuBarLoader.height
225 height: menuBarLoader.height
226 enableKeyFilter: valid && PanelState.decorationsVisible
226 enableKeyFilter: valid && PanelState.decorationsVisible
@@ -339,7 +339,7 @@ Item {
339 maximumLineCount: 1
339 maximumLineCount: 1
340 fontSize: "medium"
340 fontSize: "medium"
341 font.weight: Font.Medium
341 font.weight: Font.Medium
342− color: Theme.palette.selected.backgroundText
342+ color: theme.palette.selected.backgroundText
343 opacity: __applicationMenus.visible && !__applicationMenus.expanded ? 1 : 0
343 opacity: __applicationMenus.visible && !__applicationMenus.expanded ? 1 : 0
344 visible: opacity != 0
344 visible: opacity != 0
345 Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }
345 Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }
qml/Stage/DecoratedWindow.qml+1
@@ -38,6 +38,7 @@ FocusScope {
38 property alias maximizeButtonShown: decoration.maximizeButtonShown
38 property alias maximizeButtonShown: decoration.maximizeButtonShown
39 property alias interactive: applicationWindow.interactive
39 property alias interactive: applicationWindow.interactive
40 readonly property alias orientationChangesEnabled: applicationWindow.orientationChangesEnabled
40 readonly property alias orientationChangesEnabled: applicationWindow.orientationChangesEnabled
41+ property alias windowControlButtonsVisible: decoration.windowControlButtonsVisible
41
42
42 // Changing this will actually add/remove a decoration, meaning, requestedHeight will take the decoration into account.
43 // Changing this will actually add/remove a decoration, meaning, requestedHeight will take the decoration into account.
43 property bool hasDecoration: true
44 property bool hasDecoration: true
qml/Stage/Stage.qml+1
@@ -1385,6 +1385,7 @@ FocusScope {
1385 requestedHeight: appContainer.height;
1385 requestedHeight: appContainer.height;
1386 }
1386 }
1387 PropertyChanges { target: touchControls; enabled: true }
1387 PropertyChanges { target: touchControls; enabled: true }
1388+ PropertyChanges { target: decoratedWindow; windowControlButtonsVisible: false }
1388 },
1389 },
1389 State {
1390 State {
1390 name: "fullscreen"; when: appDelegate.fullscreen && !appDelegate.minimized
1391 name: "fullscreen"; when: appDelegate.fullscreen && !appDelegate.minimized
qml/Stage/WindowDecoration.qml+1
@@ -34,6 +34,7 @@ MouseArea {
34 property var menu: undefined
34 property var menu: undefined
35 property bool enableMenus: true
35 property bool enableMenus: true
36 property bool windowMoving: false
36 property bool windowMoving: false
37+ property alias windowControlButtonsVisible: buttons.visible
37
38
38 readonly property real buttonsWidth: buttons.width + row.spacing
39 readonly property real buttonsWidth: buttons.width + row.spacing
39
40