From e882133ba753294f9c5b5fe1c1b93bc0b0d1f70d Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 1 Mar 2022 22:45:39 +0100 Subject: remove false-positive warning for int comparison as bool Reported by Prathu Baronia , patch slightly changed. Thanks! --- dmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmenu.c b/dmenu.c index 9b6a0a1..e496abf 100644 --- a/dmenu.c +++ b/dmenu.c @@ -663,7 +663,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; -- cgit v1.2.3