Fix hotkeys overlay used before intellihide initialization

This commit is contained in:
Charles Gagnon
2019-03-17 15:08:20 -04:00
parent f2248010dd
commit b3aecfce1d
2 changed files with 7 additions and 2 deletions

View File

@@ -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);

View File

@@ -792,9 +792,9 @@ var thumbnailPreview = Utils.defineClass({
}
}
Main.activateWindow(this.window);
topMenu.close(~0);
Main.activateWindow(this.window);
},
_onMotionEvent: function() {