remove false-positive warning for int comparison as bool
3a505ceb
Reported by Prathu Baronia <prathu.baronia@praton.me>, patch slightly changed. Thanks!
1 file(s) · +1 −1
Reported by Prathu Baronia <prathu.baronia@praton.me>, patch slightly changed. Thanks!
| 652 | 652 | /* no focused window is on screen, so use pointer location instead */ |
|
| 653 | 653 | if (mon < 0 && !area && XQueryPointer(dpy, root, &dw, &dw, &x, &y, &di, &di, &du)) |
|
| 654 | 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 | 656 | break; |
|
| 657 | 657 | ||
| 658 | 658 | x = info[i].x_org; |