|
const focusedWindow = global.display.get_focus_window().get_id(); |
I have modified your extension to workaround the issue as follows:
const focusWindow = global.display.get_focus_window();
const focusedWindow = focusWindow ? focusWindow.get_id() : null;
This way, when I have no focused windows on my GNOME 44, I can still bring the terminal application from the background.
Please consider implementing my suggestion so I do not have to patch your otherwise awesome extension :D
focus-window/extension.js
Line 126 in 36f242b
I have modified your extension to workaround the issue as follows:
const focusWindow = global.display.get_focus_window();const focusedWindow = focusWindow ? focusWindow.get_id() : null;This way, when I have no focused windows on my GNOME 44, I can still bring the terminal application from the background.
Please consider implementing my suggestion so I do not have to patch your otherwise awesome extension :D