projects
/
suckless
/
dmenu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
308fe78
)
remove false-positive warning for int comparison as bool
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 1 Mar 2022 21:45:39 +0000
(22:45 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 1 Mar 2022 21:45:39 +0000
(22:45 +0100)
Reported by Prathu Baronia <prathu.baronia@praton.me>, patch slightly changed.
Thanks!
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index d95e6c6ad0ee62e7379220be20b0ed06a6ddf15f..eca67acadb6d176f5389ee0e6eb1cd085322bad0 100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-652,7
+652,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;