remove false-positive warning for int comparison as bool - dmenu - dynamic menu | |
git clone git://git.suckless.org/dmenu | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 3a505cebe8adab204e5619357e0bfe3f9f3a92ff | |
parent 308fe78b83836371720c7d7eb2c3eac409f3cc16 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 1 Mar 2022 22:45:39 +0100 | |
remove false-positive warning for int comparison as bool | |
Reported by Prathu Baronia <[email protected]>, patch slightly changed. | |
Thanks! | |
Diffstat: | |
M dmenu.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/dmenu.c b/dmenu.c | |
@@ -652,7 +652,7 @@ setup(void) | |
/* no focused window is on screen, so use pointer location ins… | |
if (mon < 0 && !area && XQueryPointer(dpy, root, &dw, &dw, &x,… | |
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; |