From fb5a774a365fc7cbe4575b2cc781a6a518598bc8 Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Wed, 20 Dec 2023 01:28:17 +0100 Subject: [PATCH] set the WM_CLASS res_class = res_name and not GNUstep, so that it is the App name from NSProcessInfo, that way certaain windowmanagers (e.g. Xfce) can group windows per application, and not lump all GS apps together --- Source/x11/XGServerWindow.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index e16f7775..075d5d01 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -1,3 +1,4 @@ + /* XGServerWindows - methods for window/screen handling Copyright (C) 1999-2020 Free Software Foundation, Inc. @@ -1933,10 +1934,10 @@ - (int) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style &window->xwn_attrs); /* - * Mark this as a GNUstep app with the current application name. + * Mark the window as the application with name & class so the WM can group it */ classhint.res_name = generic.rootName; - classhint.res_class = "GNUstep"; + classhint.res_class = generic.rootName; XSetClassHint(dpy, window->ident, &classhint); window->map_state = IsUnmapped;