@@ -26,7 +26,7 @@ Item {
2626 onOverlayModeChanged: print(";;;;;;;;;;;;;;;;;;;;;;;;;; overlayModeChanged:", overlayWidth)
2727
2828 onShownChanged: {
29−// print("shown", shown)
29+ print("___________________________shown", shown)
3030 if (!shown) {
3131 priv.mainStageAppId = "";
3232 }
@@ -58,7 +58,7 @@ Item {
5858 }
5959 }
6060
61−// Rectangle { anchors.fill: parent; color: "blue"; opacity: 0.5 }
61+ Rectangle { anchors.fill: parent; color: "blue"; opacity: 0.5 }
6262
6363 QtObject {
6464 id: priv
@@ -92,6 +92,7 @@ Item {
9292 if (focusedApplication) {
9393 if (focusedApplication.stage == ApplicationInfoInterface.MainStage) {
9494 mainStageAppId = focusedApplicationId;
95+ priv.overlayOverride = false;
9596 } else if (focusedApplication.stage == ApplicationInfoInterface.SideStage) {
9697 sideStageAppId = focusedApplicationId;
9798 }
@@ -203,19 +204,28 @@ Item {
203204 sideStageImage.snapToApp(application)
204205 }
205206 } else if (application.stage == ApplicationInfoInterface.MainStage) {
207+ print("should focus a main stage app")
206208 if (root.shown) {
209+ print("root is already shown")
207210 priv.mainStageAppId = application.appId;
208211 mainStageImage.switchTo(application)
209212 if (sideStageImage.shown) {
213+ print("hiding side stage!")
210214 sideStageImage.snapTo(root.width)
211215 } else {
216+ print("focusing app", appId)
212217 ApplicationManager.focusApplication(appId)
213218 }
214219 } else {
220+ if (sideStageImage.shown) {
221+ sideStageImage.visible = false;
222+ sideStageImage.x = root.width;
223+ }
224+
215225 ApplicationManager.focusApplication(appId)
216226 }
217227 }
218− priv.overlayOverride = false;
228+// priv.overlayOverride = false;
219229 }
220230
221231 onApplicationRemoved: {