on xenial help sign in
fallback to application.fullscreen if the surface disappears
commit4204e748e5c48cdfae4120e8a6cc5288562e4d2c authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 22 Sep 2016, 15:35 (10 years ago) parente3b4b28
2 files changed+1−2
qml/Stage/Stage.qml+1−1 qml/Stage/SurfaceContainer.qml−1
qml/Stage/Stage.qml+1−1
@@ -695,7 +695,7 @@ FocusScope {
695695 maximizedTopLeft || maximizedTopRight || maximizedBottomLeft || maximizedBottomRight
696696
697697 readonly property bool minimized: windowState & WindowStateStorage.WindowStateMinimized
698− readonly property bool fullscreen: surface && surface.state === Mir.FullscreenState;
698+ readonly property bool fullscreen: surface ? surface.state === Mir.FullscreenState : application.fullscreen
699699
700700 readonly property bool canBeMaximized: canBeMaximizedHorizontally && canBeMaximizedVertically
701701 readonly property bool canBeMaximizedLeftRight: (maximumWidth == 0 || maximumWidth >= appContainer.width/2) &&
qml/Stage/SurfaceContainer.qml−1
@@ -34,7 +34,6 @@ FocusScope {
3434 property int requestedHeight: -1
3535 property bool interactive
3636 property int surfaceOrientationAngle: 0
37− property bool resizeSurface: true
3837 property bool isPromptSurface: false
3938 // FIME - dont export, use interactive property. Need to fix qtmir to handle consumesInputChanged
4039 // to update surface activeFocus. See mock MirSurfaceItem.