on xenial help sign in
fix fullscreen policy
98d3051Michael Zanetti
qml/Stage/Stage.qml+7−10
@@ -1108,14 +1108,6 @@ AbstractStage {
1108 }
1108 }
1109
1109
1110 property bool saveStateOnDestruction: true
1110 property bool saveStateOnDestruction: true
1111− Connections {
1112− target: root
1113− onStageAboutToBeUnloaded: {
1114− resizeArea.saveWindowState();
1115− resizeArea.saveStateOnDestruction = false;
1116− fullscreenPolicy.active = false;
1117− }
1118− }
1119 Component.onDestruction: {
1111 Component.onDestruction: {
1120 if (saveStateOnDestruction) {
1112 if (saveStateOnDestruction) {
1121 saveWindowState();
1113 saveWindowState();
@@ -1183,8 +1175,13 @@ AbstractStage {
1183 }
1175 }
1184
1176
1185 WindowedFullscreenPolicy {
1177 WindowedFullscreenPolicy {
1186− id: fullscreenPolicy
1178+ id: windowedFullscreenPolicy
1187− active: true
1179+ active: root.mode == "windowed"
1180+ surface: model.surface
1181+ }
1182+ StagedFullscreenPolicy {
1183+ id: stagedFullscreenPolicy
1184+ active: root.mode == "staged" || root.mode == "stagedWithSideStage"
1188 surface: model.surface
1185 surface: model.surface
1189 }
1186 }
1190
1187