@@ -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 }