on xenial help sign in
hide stage if no focused app is around any more
commitabec38ce1bcff1f0eafe3446a34a8f28b7849955 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 20 Mar 2014, 16:54 (13 years ago) parentccb6b33
2 files changed+10−1
qml/Shell.qml+6 qml/Stages/StageWithSideStage.qml+4−1
qml/Shell.qml+6
@@ -284,6 +284,12 @@ FocusScope {
284284 onApplicationAdded: {
285285 stages.show();
286286 }
287+
288+ onApplicationRemoved: {
289+ if (ApplicationManager.focusedApplicationId.length == 0) {
290+ stages.hide();
291+ }
292+ }
287293 }
288294
289295 Loader {
qml/Stages/StageWithSideStage.qml+4−1
@@ -170,7 +170,6 @@ Item {
170170
171171 }
172172 // FIXME: the signal connection seems to get lost with the fake application manager.
173− // Check with Qt 5.2, see if we can remove this Connections object
174173 Connections {
175174 target: priv.sideStageApp
176175 onScreenshotChanged: priv.sideStageScreenshot = priv.sideStageApp.screenshot
@@ -242,6 +241,10 @@ Item {
242241 if (priv.sideStageAppId == appId) {
243242 priv.sideStageAppId = "";
244243 }
244+ if (priv.sideStageAppId.length == 0) {
245+ sideStageImage.shown = false;
246+ priv.overlayOverride = false;
247+ }
245248 }
246249
247250 }