keyboard: Fix handled check

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2021-11-01 21:59:07 +00:00 committed by Johan Malm
parent ceb54d0236
commit 23b5eb294e

View file

@ -130,7 +130,7 @@ handle_compositor_keybindings(struct wl_listener *listener,
/* Handle compositor key bindings */
if (event->state == WL_KEYBOARD_KEY_STATE_PRESSED) {
for (int i = 0; i < nsyms; i++) {
handled = handle_keybinding(server, modifiers, syms[i]);
handled |= handle_keybinding(server, modifiers, syms[i]);
}
}