navigator: Fix escape when the starting window is closed

This commit is contained in:
Tor Hedin Brønner
2018-07-11 17:16:50 +02:00
parent 0a8a0079c9
commit e21433333c
+4 -1
View File
@@ -447,7 +447,10 @@ var PreviewedWindowNavigator = new Lang.Class({
if(!this.was_accepted) {
// Abort the navigation
this.space = from;
this.space.selectedWindow = this._startWindow;
if (this._startWindow.get_compositor_private())
this.space.selectedWindow = this._startWindow;
else
this.space.selectedWindow = global.display.focus_window;
}
if (this.monitor !== this.space.monitor) {