From b3aecfce1d79cedcdc4e398c55f32d44d0c1f448 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Sun, 17 Mar 2019 15:08:20 -0400 Subject: [PATCH] Fix hotkeys overlay used before intellihide initialization --- overview.js | 5 +++++ windowPreview.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/overview.js b/overview.js index ead284a..5255acc 100644 --- a/overview.js +++ b/overview.js @@ -344,6 +344,11 @@ var dtpOverview = Utils.defineClass({ }, _showOverlay: function(overlayFromShortcut) { + //wait for intellihide timeout initialization + if (!this._panel.intellihide) { + return; + } + // Restart the counting if the shortcut is pressed again if (this._numberOverlayTimeoutId) { Mainloop.source_remove(this._numberOverlayTimeoutId); diff --git a/windowPreview.js b/windowPreview.js index a8235c2..1991845 100644 --- a/windowPreview.js +++ b/windowPreview.js @@ -792,9 +792,9 @@ var thumbnailPreview = Utils.defineClass({ } } - Main.activateWindow(this.window); - topMenu.close(~0); + + Main.activateWindow(this.window); }, _onMotionEvent: function() {