Skip to content

Commit 3eda9bb

Browse files
jmmarananmmstick
authored andcommitted
fix: handle gjs in 3.36
1 parent b76b83b commit 3eda9bb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/extension.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2574,12 +2574,14 @@ function _show_skip_taskbar_windows(ext: Ext) {
25742574
if (GNOME_VERSION?.startsWith("3.36"))
25752575
meta_win = win.get_meta_window();
25762576

2577+
let gnome_shell_wm_class = meta_win.get_wm_class() === "Gjs" ||
2578+
meta_win.get_wm_class() === "Gnome-shell";
25772579
let show_skiptb = !cfg.skiptaskbar_shall_hide(meta_win);
25782580
return (show_skiptb && meta_win.skip_taskbar &&
25792581
// ignore wm_class == null + Gjs and
25802582
// are skip taskbar true
25812583
(meta_win.get_wm_class() !== null &&
2582-
meta_win.get_wm_class() !== "Gjs")) ||
2584+
!gnome_shell_wm_class) ||
25832585
default_isoverviewwindow_ws(win);
25842586
};
25852587
}
@@ -2627,12 +2629,14 @@ function _show_skip_taskbar_windows(ext: Ext) {
26272629
let meta_win = win.get_meta_window();
26282630
// wm_class Gjs needs to be skipped to prevent the ghost window in
26292631
// workspace and overview
2632+
let gnome_shell_wm_class = meta_win.get_wm_class() === "Gjs" ||
2633+
meta_win.get_wm_class() === "Gnome-shell";
26302634
let show_skiptb = !cfg.skiptaskbar_shall_hide(meta_win);
26312635
return (show_skiptb && meta_win.skip_taskbar &&
26322636
// ignore wm_class == null + Gjs and
26332637
// are skip taskbar true
26342638
(meta_win.get_wm_class() !== null &&
2635-
meta_win.get_wm_class() !== "Gjs")) ||
2639+
!gnome_shell_wm_class)) ||
26362640
default_isoverviewwindow_ws_thumbnail(win);
26372641
};
26382642
}

0 commit comments

Comments
 (0)