Skip to content

Commit

Permalink
Merge pull request #13 from zba/patch-1
Browse files Browse the repository at this point in the history
fix not defined declarations
  • Loading branch information
e3rd authored Aug 14, 2018
2 parents b194872 + ad0f1a8 commit 39df01c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ const Controller = new Lang.Class({ // based on https://superuser.com/questions/
log('no focus, go to:' + seen.get_wm_class());
focusWindow(seen);
} else if (settings.get_boolean('switch-back-when-focused')) {
window_monitor = wm.get_monitor();
const window_monitor = wm.get_monitor();
const window_list = global.display.get_tab_list(0, null).filter(w=>w.get_monitor() === window_monitor && w !== wm);
lastWindow = window_list[0];
const lastWindow = window_list[0];
if (lastWindow) {
log('focus, go to:' + lastWindow.get_wm_class());
focusWindow(lastWindow);
Expand Down

0 comments on commit 39df01c

Please sign in to comment.