mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
fixed segfault with incomplete WM_CLASS
This commit is contained in:
@@ -830,9 +830,9 @@ wManageWindow(WScreen *scr, Window window)
|
||||
|
||||
#define ADEQUATE(x) ((x)!=None && (x)!=wwin->client_win && (x)!=fPtr->leader)
|
||||
|
||||
|
||||
PropGetWMClass(wwin->main_window, &class, &instance);
|
||||
buffer = wmalloc(strlen(instance)+strlen(class)+2);
|
||||
sprintf(buffer, "%s.%s", instance, class);
|
||||
buffer = StrConcatDot(instance, class);
|
||||
|
||||
index = WMFindInArray(scr->fakeGroupLeaders, matchIdentifier, (void*)buffer);
|
||||
if (index != WANotFound) {
|
||||
|
||||
Reference in New Issue
Block a user