From 860680f59f8790f0893f3fdc32c6bc64c7cd7dad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Fri, 2 Jun 2023 14:25:40 -0400
Subject: [PATCH] Fix inverted logic in last commit

---
 src/conio/x_events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conio/x_events.c b/src/conio/x_events.c
index 5b914d0beb..1c1dfcb69c 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);
-- 
GitLab