[metacity/wip/muktupavels/issue-26: 4/4] display: put windows with same WM_CLASS in tab list group
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/wip/muktupavels/issue-26: 4/4] display: put windows with same WM_CLASS in tab list group
- Date: Sun, 9 Oct 2022 15:25:10 +0000 (UTC)
commit 519c5bdb98fbb56cd931b200f1335d524fd8685a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Oct 9 18:09:58 2022 +0300
display: put windows with same WM_CLASS in tab list group
Use WM_CLASS as last thing to check if window should be shown in
tab list group. GNOME Shell and xfwm4 use WM_CLASS to decide if
windows belongs to same application. Also tasklist from libwnck
does window grouping based on WM_CLASS.
https://gitlab.gnome.org/GNOME/metacity/-/issues/26
src/core/display.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/core/display.c b/src/core/display.c
index eeccf325..17a1a30b 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -4597,6 +4597,12 @@ in_tab_chain (MetaWindow *window,
if (meta_window_same_client (window, focus_window))
return TRUE;
+
+ if (window->res_class != NULL &&
+ *window->res_class != '\0' &&
+ focus_window->res_class != NULL &&
+ strcmp (window->res_class, focus_window->res_class) == 0)
+ return TRUE;
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]