@@ -1108,14 +1108,6 @@ AbstractStage {
1110 property bool saveStateOnDestruction: true
1110 property bool saveStateOnDestruction: true
1113− onStageAboutToBeUnloaded: {
1114− resizeArea.saveWindowState();
1115− resizeArea.saveStateOnDestruction = false;
1116− fullscreenPolicy.active = false;
1119 Component.onDestruction: {
1111 Component.onDestruction: {
1120 if (saveStateOnDestruction) {
1112 if (saveStateOnDestruction) {
1121 saveWindowState();
1113 saveWindowState();
@@ -1183,8 +1175,13 @@ AbstractStage {
1185 WindowedFullscreenPolicy {
1177 WindowedFullscreenPolicy {
1186− id: fullscreenPolicy
1178+ id: windowedFullscreenPolicy
1187− active: true
1179+ active: root.mode == "windowed"
1180+ surface: model.surface
1182+ StagedFullscreenPolicy {
1183+ id: stagedFullscreenPolicy
1184+ active: root.mode == "staged" || root.mode == "stagedWithSideStage"
1188 surface: model.surface
1185 surface: model.surface