Properly compare desktop window types, closes #37

This commit is contained in:
Jarcode
2018-03-19 21:45:19 -07:00
parent b446ac99c9
commit dfd16f9e22

2
xwin.c
View File

@@ -121,7 +121,7 @@ static bool xwin_changeatom(struct gl_wcb* wcb, void* impl, const char* type,
default: formatted[t] = c; default: formatted[t] = c;
} }
} }
bool ret = !strcmp(type, "DESKTOP"); bool ret = !strcmp(formatted, "DESKTOP");
char buf[256]; char buf[256];
snprintf(buf, sizeof(buf), fmt, formatted); snprintf(buf, sizeof(buf), fmt, formatted);
Atom desk = XInternAtom(d, buf, false); Atom desk = XInternAtom(d, buf, false);