[hackers] [dmenu][PATCH] fixed gcc -Wint-in-tool-context Warning.

From: Yang Li <git_AT_netcrop.org>
Date: Fri, 27 Mar 2020 16:56:44 +0800

---
 dmenu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dmenu.c b/dmenu.c
index 65f25ce..1e37a9a 100644
--- a/dmenu.c
+++ b/dmenu.c
_AT_@ -634,7 +634,7 @@ setup(void)
 		/* no focused window is on screen, so use pointer location instead */
 		if (mon < 0 && !area && XQueryPointer(dpy, root, &dw, &dw, &x, &y, &di, &di, &du))
 			for (i = 0; i < n; i++)
-				if (INTERSECT(x, y, 1, 1, info[i]))
+				if (INTERSECT(x, y, 1, 1, info[i]) != 0)
 					break;
 
 		x = info[i].x_org;
-- 
2.26.0
Received on Fri Mar 27 2020 - 09:56:44 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 27 2020 - 10:24:37 CET