on xenial help sign in
minimized+focused window fixes
commit14c72a1d6300b4374a0033d17592fc6b793e9cc0 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 25 Jan 2017, 00:09 (10 years ago) parentda44448
1 file changed+3−4
qml/Stage/Stage.qml+3−4
qml/Stage/Stage.qml+3−4
@@ -100,7 +100,9 @@ FocusScope {
100100 } else {
101101 // No we didn't, do a quick alt-tab
102102 if (appRepeater.count > 1) {
103− appRepeater.itemAt(1).claimFocus();
103+ appRepeater.itemAt(1).activate();
104+ } else if (appRepeater.count > 0) {
105+ appRepeater.itemAt(0).activate(); // quick alt-tab to the only (minimized) window should still activate it
104106 }
105107 }
106108 }
@@ -871,9 +873,6 @@ FocusScope {
871873 }
872874 priv.updateMainAndSideStageIndexes();
873875 }
874− if (root.mode == "windowed") {
875− appDelegate.restore(true /* animated */, appDelegate.windowState);
876− }
877876 appDelegate.focus = true;
878877 }
879878