1
0
Fork 0
mirror of https://github.com/Cloudef/bemenu synced 2024-06-19 18:19:35 +02:00

Fix gcc warnings

This commit is contained in:
Jari Vetoniemi 2020-02-07 13:05:15 +02:00
parent 543b6c4473
commit 9ff670f349
2 changed files with 3 additions and 1 deletions

View File

@ -164,7 +164,7 @@ bm_x11_window_set_monitor(struct window *window, uint32_t monitor)
/* no focused window is on screen, so use pointer location instead */
if (monitor == 0 && !area && XQueryPointer(window->display, 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;
}
}

View File

@ -103,8 +103,10 @@ poll_key(const struct bm_menu *menu, unsigned int *unicode)
case XK_g:
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
// fall through
case XK_bracketleft:
if (!(mods & MOD_CTRL)) return BM_KEY_UNICODE;
// fall through
case XK_Escape:
return BM_KEY_ESCAPE;