@@ -55,14 +55,14 @@ FocusScope {
55 function activateApplication(appId) {
55 function activateApplication(appId) {
56 if (ApplicationManager.findApplication(appId)) {
56 if (ApplicationManager.findApplication(appId)) {
57 ApplicationManager.requestFocusApplication(appId);
57 ApplicationManager.requestFocusApplication(appId);
58− stages.show();
58+ stages.show(true);
59 if (stages.locked && ApplicationManager.focusedApplicationId == appId) {
59 if (stages.locked && ApplicationManager.focusedApplicationId == appId) {
60 applicationsDisplayLoader.item.select(appId);
60 applicationsDisplayLoader.item.select(appId);
63 var execFlags = shell.sideStageEnabled ? ApplicationManager.NoFlag : ApplicationManager.ForceMainStage;
63 var execFlags = shell.sideStageEnabled ? ApplicationManager.NoFlag : ApplicationManager.ForceMainStage;
64 ApplicationManager.startApplication(appId, execFlags);
64 ApplicationManager.startApplication(appId, execFlags);
65− stages.show();
65+ stages.show(false);
@@ -198,7 +198,7 @@ FocusScope {
198 onDraggingChanged: {
198 onDraggingChanged: {
199 if (!dragging) {
199 if (!dragging) {
200 if (ApplicationManager.count > 0 && progress < stages.width - units.gu(10)) {
200 if (ApplicationManager.count > 0 && progress < stages.width - units.gu(10)) {
201− stages.show()
201+ stages.show(true)
203 stagesDragHandle.progress = stages.width;
203 stagesDragHandle.progress = stages.width;
@@ -237,10 +237,10 @@ FocusScope {
237 property int overlayWidth: applicationsDisplayLoader.item ? applicationsDisplayLoader.item.overlayWidth : false
237 property int overlayWidth: applicationsDisplayLoader.item ? applicationsDisplayLoader.item.overlayWidth : false
238 property bool locked: applicationsDisplayLoader.item ? applicationsDisplayLoader.item.locked : false
238 property bool locked: applicationsDisplayLoader.item ? applicationsDisplayLoader.item.locked : false
240− function show() {
240+ function show(focusApp) {
241 shown = true;
241 shown = true;
242 panel.indicators.hide();
242 panel.indicators.hide();
243− if (!ApplicationManager.focusedApplicationId && ApplicationManager.count > 0) {
243+ if (!ApplicationManager.focusedApplicationId && ApplicationManager.count > 0 && focusApp) {
244 ApplicationManager.focusApplication(ApplicationManager.get(0).appId);
244 ApplicationManager.focusApplication(ApplicationManager.get(0).appId);
@@ -256,12 +256,12 @@ FocusScope {
256 target: ApplicationManager
256 target: ApplicationManager
258 onFocusRequested: {
258 onFocusRequested: {
259− stages.show();
259+ stages.show(true);
262 onFocusedApplicationIdChanged: {
262 onFocusedApplicationIdChanged: {
263 if (ApplicationManager.focusedApplicationId.length > 0) {
263 if (ApplicationManager.focusedApplicationId.length > 0) {
264− stages.show();
264+ stages.show(false);
266 if (!stages.overlayMode) {
266 if (!stages.overlayMode) {
267 stages.hide();
267 stages.hide();
@@ -276,7 +276,7 @@ FocusScope {
278 onApplicationAdded: {
278 onApplicationAdded: {
279− stages.show();
279+ stages.show(false);
282 onApplicationRemoved: {
282 onApplicationRemoved: {