@@ -750,20 +750,17 @@ AbstractStage {
750 progress: spreadTile.progress - spreadView.positionMarker1
750 progress: spreadTile.progress - spreadView.positionMarker1
753− property bool firstTimeSurface: true
754 property var lastSurface: application && application.session ?
753 property var lastSurface: application && application.session ?
755 application.session.lastSurface : null
754 application.session.lastSurface : null
756− onLastSurfaceChanged: {
755+ Binding {
757− if (!lastSurface) return;
756+ target: lastSurface
758− if (!firstTimeSurface) return;
757+ when: lastSurface
759− firstTimeSurface = false;
758+ property: "state"
761− if (lastSurface.state !== Mir.FullscreenState &&
762− lastSurface.shellChrome === Mir.LowChrome) {
760+ lastSurface.shellChrome === Mir.LowChrome ? Mir.FullscreenState : Mir.RestoredState
763− lastSurface.state = Mir.FullscreenState;
766− fullscreen: lastSurface ? lastSurface.shellChrome === Mir.LowChrome : false
763+ fullscreen: application.fullscreen