mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
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:
parent
895fdbcf39
commit
fb5a774a36
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue