Skip to content

Commit 64b76b8

Browse files
committed
Use Process Name as Windows Group Identifier, less verbose and more
user-friendly than full bundle identifier alternative.
1 parent 3b5d36a commit 64b76b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/x11/XGServerWindow.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/* XGServerWindows - methods for window/screen handling
32
43
Copyright (C) 1999-2020 Free Software Foundation, Inc.
@@ -1942,8 +1941,9 @@ - (int) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style
19421941
/*
19431942
* Mark the window as the application with name & class so the WM can group it
19441943
*/
1944+
const char *procName = [[[NSProcessInfo processInfo] processName] UTF8String];
19451945
classhint.res_name = generic.rootName;
1946-
classhint.res_class = generic.rootName;
1946+
classhint.res_class = (char *)procName;
19471947
XSetClassHint(dpy, window->ident, &classhint);
19481948

19491949
window->map_state = IsUnmapped;

0 commit comments

Comments
 (0)