diff --git a/src/conio/x_events.c b/src/conio/x_events.c index 5b914d0bebfb3eaaa2492e736323f8309a220210..1c1dfcb69c708884a659ea776b23d439d2b547fc 100644 --- a/src/conio/x_events.c +++ b/src/conio/x_events.c @@ -424,7 +424,7 @@ set_icon(const void *data, size_t width, XWMHints *hints) bool fail = false; unsigned short tmp; XColor fg; - bool sethints = (hints != NULL); + bool sethints = (hints == NULL); icn = x11.XCreatePixmap(dpy, DefaultRootWindow(dpy), width, width, depth); igc = x11.XCreateGC(dpy, icn, GCFunction | GCForeground | GCBackground | GCGraphicsExposures, &gcv);