We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b194872 + ad0f1a8 commit 39df01cCopy full SHA for 39df01c
extension.js
@@ -129,9 +129,9 @@ const Controller = new Lang.Class({ // based on https://superuser.com/questions/
129
log('no focus, go to:' + seen.get_wm_class());
130
focusWindow(seen);
131
} else if (settings.get_boolean('switch-back-when-focused')) {
132
- window_monitor = wm.get_monitor();
+ const window_monitor = wm.get_monitor();
133
const window_list = global.display.get_tab_list(0, null).filter(w=>w.get_monitor() === window_monitor && w !== wm);
134
- lastWindow = window_list[0];
+ const lastWindow = window_list[0];
135
if (lastWindow) {
136
log('focus, go to:' + lastWindow.get_wm_class());
137
focusWindow(lastWindow);
0 commit comments