diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-01 22:45:39 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-03-01 22:45:39 +0100 |
commit | 3a505cebe8adab204e5619357e0bfe3f9f3a92ff (patch) | |
tree | 669133c5bcb4671df5b80d36a727a5c40222ca54 | |
parent | 308fe78b83836371720c7d7eb2c3eac409f3cc16 (diff) |
remove false-positive warning for int comparison as bool
Reported by Prathu Baronia <prathu.baronia@praton.me>, patch slightly changed.
Thanks!
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -652,7 +652,7 @@ setup(void) | |||
652 | /* no focused window is on screen, so use pointer location instead */ | 652 | /* no focused window is on screen, so use pointer location instead */ |
653 | if (mon < 0 && !area && XQueryPointer(dpy, root, &dw, &dw, &x, &y, &di, &di, &du)) | 653 | if (mon < 0 && !area && XQueryPointer(dpy, root, &dw, &dw, &x, &y, &di, &di, &du)) |
654 | for (i = 0; i < n; i++) | 654 | for (i = 0; i < n; i++) |
655 | if (INTERSECT(x, y, 1, 1, info[i])) | 655 | if (INTERSECT(x, y, 1, 1, info[i]) != 0) |
656 | break; | 656 | break; |
657 | 657 | ||
658 | x = info[i].x_org; | 658 | x = info[i].x_org; |