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

This commit is contained in:
Riccardo Mottola 2023-12-20 01:28:17 +01:00
parent 895fdbcf39
commit fb5a774a36

View file

@ -1,3 +1,4 @@
/* XGServerWindows - methods for window/screen handling
Copyright (C) 1999-2020 Free Software Foundation, Inc.
@ -1933,10 +1934,10 @@ _get_next_prop_new_event(Display *display, XEvent *event, char *arg)
&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;