diff --git a/xwin.c b/xwin.c index e0d0145..83fa496 100644 --- a/xwin.c +++ b/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);