Skip to content

Commit a2c0381

Browse files
mmstickjackpot51
authored andcommitted
fix: Do not activate launcher when in fullscreen window
1 parent 924bf09 commit a2c0381

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/keybindings.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ export class Keybindings {
1616
this.ext = ext;
1717
this.global = {
1818
"activate-launcher": () => {
19+
// Ignore when a fullscreen window is active
20+
if (ext.focus_window()?.meta.is_fullscreen()) {
21+
return
22+
}
23+
1924
ext.tiler.exit(ext);
2025
ext.window_search.open(ext);
2126
},

src/launcher.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export class Launcher extends search.Search {
263263
}
264264

265265
load_desktop_files() {
266-
log.warn("pop-shell: deprecated function called (dialog_launcher::load_desktop_files)")
266+
log.warn("pop-shell: deprecated function called (launcher::load_desktop_files)")
267267
}
268268

269269
locate_by_app_info(info: any): null | ShellWindow {
@@ -293,11 +293,17 @@ export class Launcher extends search.Search {
293293
}
294294

295295
open(ext: Ext) {
296+
// Do not activate if the focused window is fullscreen
297+
if (ext.focus_window()?.meta.is_fullscreen()) {
298+
return
299+
}
300+
296301
const active_monitor = ext.active_monitor()
297302
const mon_work_area = ext.monitor_work_area(active_monitor)
298303
const mon_area = ext.monitor_area(active_monitor)
299304
const mon_width = mon_area ? mon_area.width : mon_work_area.width
300305

306+
301307
super.cleanup()
302308

303309
this.start_services()

0 commit comments

Comments
 (0)