on xenial help sign in
WM: ensure focusedApplicationWhenUsingScreenshots reset when unused, and only used when set. Fixes window focus conflict between shell and ApplicationManager
commit8b1ac82c7a300f518d3bd9ab4df77c019ea52c7d authorGerry Boland <gerry.boland@canonical.com> dateWed 2 Oct 2013, 23:59 (13 years ago) parentfd2f17e
1 file changed+4−1
Components/Stage.qml+4−1
Components/Stage.qml+4−1
@@ -97,7 +97,9 @@ Showable {
9797 if (shouldUseScreenshots) {
9898 stage.__focusApplicationUsingScreenshots(stage.focusedApplication);
9999 } else {
100− stage.__focusActualApplication(stage.focusedApplicationWhenUsingScreenshots);
100+ if (stage.focusedApplicationWhenUsingScreenshots) {
101+ stage.__focusActualApplication(stage.focusedApplicationWhenUsingScreenshots);
102+ }
101103 }
102104 }
103105
@@ -244,6 +246,7 @@ Showable {
244246 */
245247 delayedHideScreenshots.start();
246248 } else {
249+ stage.focusedApplicationWhenUsingScreenshots = null;
247250 stage.__hideScreenshots();
248251 }
249252 }