on xenial help sign in
Remove fixme hack as ApplicationManager better behaved now
a2f764eGerry Boland
Shell.qml+2−4
@@ -502,10 +502,8 @@ FocusScope {
502
502
503 function setFocused(focused) {
503 function setFocused(focused) {
504 if (!focused) {
504 if (!focused) {
505− // FIXME: *FocusedApplication are not updated when unfocused, hence the need to check whether
506− // the stage was actually shown
507− if (mainStage.fullyShown) powerConnection.previousMainApp = applicationManager.mainStageFocusedApplication;
505+ powerConnection.previousMainApp = applicationManager.mainStageFocusedApplication;
508− if (sideStage.fullyShown) powerConnection.previousSideApp = applicationManager.sideStageFocusedApplication;
506+ powerConnection.previousSideApp = applicationManager.sideStageFocusedApplication;
509 applicationManager.unfocusCurrentApplication();
507 applicationManager.unfocusCurrentApplication();
510 } else {
508 } else {
511 if (powerConnection.previousMainApp) {
509 if (powerConnection.previousMainApp) {