From dfd16f9e228908af7e1db649e90838feaeb3016d Mon Sep 17 00:00:00 2001 From: Jarcode Date: Mon, 19 Mar 2018 21:45:19 -0700 Subject: [PATCH] Properly compare desktop window types, closes #37 --- xwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);