Properly compare desktop window types, closes #37
This commit is contained in:
2
xwin.c
2
xwin.c
@@ -121,7 +121,7 @@ static bool xwin_changeatom(struct gl_wcb* wcb, void* impl, const char* type,
|
||||
default: formatted[t] = c;
|
||||
}
|
||||
}
|
||||
bool ret = !strcmp(type, "DESKTOP");
|
||||
bool ret = !strcmp(formatted, "DESKTOP");
|
||||
char buf[256];
|
||||
snprintf(buf, sizeof(buf), fmt, formatted);
|
||||
Atom desk = XInternAtom(d, buf, false);
|
||||
|
||||
Reference in New Issue
Block a user