diff --git a/panel.cpp b/panel.cpp index 5057334..2d80e52 100644 --- a/panel.cpp +++ b/panel.cpp @@ -48,7 +48,7 @@ Panel::Panel(Display* dpy, int scr, Window root, Cfg* config, gcm = GCGraphicsExposures; gcv.graphics_exposures = False; WinGC = XCreateGC(Dpy, Win, gcm, &gcv); - if (WinGC < 0) { + if (WinGC == 0) { cerr << APPNAME << ": failed to create pixmap\n."; exit(ERR_EXIT);