From 17a448603f4ac2ed61474dcdd610c3ab4402eba4 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Sun, 26 May 2019 09:47:20 -0400 Subject: [PATCH] Use MetaScreen for the focus on older gnome-shell versions --- windowPreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowPreview.js b/windowPreview.js index 0613597..578298d 100644 --- a/windowPreview.js +++ b/windowPreview.js @@ -179,7 +179,7 @@ var PreviewMenu = Utils.defineClass({ this._animateOpenOrClose(false, () => this._resetHiddenState()); } - global.display.focus_default_window(1); + Utils.DisplayWrapper.getScreen().focus_default_window(1); this._box.get_children().forEach(c => c.reactive = false); this.menu.reactive = false; this.currentAppIcon = null;