@@ -1108,14 +1108,6 @@ AbstractStage {
11081108 }
11091109
11101110 property bool saveStateOnDestruction: true
1111− Connections {
1112− target: root
1113− onStageAboutToBeUnloaded: {
1114− resizeArea.saveWindowState();
1115− resizeArea.saveStateOnDestruction = false;
1116− fullscreenPolicy.active = false;
1117− }
1118− }
11191111 Component.onDestruction: {
11201112 if (saveStateOnDestruction) {
11211113 saveWindowState();
@@ -1183,8 +1175,13 @@ AbstractStage {
11831175 }
11841176
11851177 WindowedFullscreenPolicy {
1186− id: fullscreenPolicy
1187− active: true
1178+ id: windowedFullscreenPolicy
1179+ active: root.mode == "windowed"
1180+ surface: model.surface
1181+ }
1182+ StagedFullscreenPolicy {
1183+ id: stagedFullscreenPolicy
1184+ active: root.mode == "staged" || root.mode == "stagedWithSideStage"
11881185 surface: model.surface
11891186 }
11901187