@@ -50,7 +50,7 @@ Item {
50 mainStageFocusedApplication = null;
50 mainStageFocusedApplication = null;
51 sideStageFocusedApplication = null;
51 sideStageFocusedApplication = null;
53− if (app.stage == ApplicationInfo.MainStage || !sideStageEnabled) {
53+ if (app.stage == ApplicationInfo.MainStage) {
54 mainStageFocusedApplication = app;
54 mainStageFocusedApplication = app;
55 // possible the side stage app being unfocused fired this signal, so check for it
55 // possible the side stage app being unfocused fired this signal, so check for it
56 if (sideStageFocusedApplication && !sideStageFocusedApplication.focused)
56 if (sideStageFocusedApplication && !sideStageFocusedApplication.focused)
@@ -64,7 +64,15 @@ Item {
68+ // if no side stage enabled, override application's stage parameter
69+ var app = ApplicationManager.findApplication(appId);
70+ if (app && app.stage === ApplicationInfo.SideStage && !sideStageEnabled) {
71+ app.stage = ApplicationInfo.MainStage;
67− onFocusRequested: root.focusRequested(appId);
74+ root.focusRequested(appId);
70 function activateApplication(desktopFile, argument) {
78 function activateApplication(desktopFile, argument) {
@@ -143,7 +151,7 @@ Item {
143 var app = ApplicationManager.get(i);
151 var app = ApplicationManager.get(i);
145 // if stage not specified and using sidestage, return whichever app running on either stage
153 // if stage not specified and using sidestage, return whichever app running on either stage
146− if (app.appId == appId && (!sideStageEnabled || stage == undefined || app.stage == stage)) {
154+ if (app.appId == appId && (stage == undefined || app.stage == stage)) {
147 return app;
155 return app;