on xenial help sign in
don't hide the decoration when the window is not visible
commitc45daa8b339a20562d993ca36a7550bfa78e9779 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 23 Nov 2015, 16:09 (11 years ago) parent5483931
1 file changed+4−3
qml/Stages/DecoratedWindow.qml+4−3
qml/Stages/DecoratedWindow.qml+4−3
@@ -24,7 +24,7 @@ FocusScope {
2424 id: root
2525
2626 width: applicationWindow.width
27− height: (decoration.visible ? decoration.height : 0) + applicationWindow.height
27+ height: (decorationShown ? decoration.height : 0) + applicationWindow.height
2828
2929 property alias window: applicationWindow
3030 property alias application: applicationWindow.application
@@ -32,6 +32,7 @@ FocusScope {
3232 property alias title: decoration.title
3333 property alias fullscreen: applicationWindow.fullscreen
3434
35+ readonly property bool decorationShown: !fullscreen
3536 property bool highlightShown: false
3637 property real shadowOpacity: 1
3738
@@ -76,7 +77,7 @@ FocusScope {
7677 height: units.gu(3)
7778 width: root.width
7879 title: window.title
79− visible: !root.fullscreen
80+ visible: root.decorationShown
8081
8182 onClose: root.close();
8283 onMaximize: { root.decorationPressed(); root.maximize(); }
@@ -90,7 +91,7 @@ FocusScope {
9091 anchors.top: parent.top
9192 anchors.topMargin: decoration.height
9293 anchors.left: parent.left
93− requestedHeight: root.requestedHeight - (decoration.visible ? decoration.height : 0)
94+ requestedHeight: root.requestedHeight - (root.decorationShown ? decoration.height : 0)
9495 interactive: true
9596 focus: true
9697 }