On Greeter lock, only save focus state of side stage app if side stage shown
commita2cd7047bca5cf3012c3416e516945684cc560ad
authorGerry Boland <gerry.boland@canonical.com>
dateMon 3 Feb 2014, 15:21 (13 years ago)
parent0384125
qml/Shell.qml+3−1
@@ -475,7 +475,9 @@ FocusScope {
475475
476476 function removeApplicationFocus() {
477477 greeter.previousMainApp = applicationManager.mainStageFocusedApplication;
478− greeter.previousSideApp = applicationManager.sideStageFocusedApplication;
478+ if (sideStage.fullyShown) { // if side stage hidden, don't focus it on restore
479+ greeter.previousSideApp = applicationManager.sideStageFocusedApplication;
480+ }
479481 applicationManager.unfocusCurrentApplication();
480482 }
481483