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