diff options
author | Louis Taylor <[email protected]> | 2018-11-26 22:35:20 +0000 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2018-11-26 21:09:23 -0500 |
commit | 5e44d3b49815ea1badf3276b763bb6eb5a2c00b9 (patch) | |
tree | 186cba5ded462f12d28a15a6a1eedde7d4a5a1d8 | |
parent | ba9cdd6c66fe2b85dbe9516eb9f6a65a2a7686c7 (diff) |
Correct WLR_BUTTON_PRESSED to WLR_KEY_PRESSED
This worked since it was the same value, but results in compile
warnings.
-rw-r--r-- | tinywl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -168,7 +168,7 @@ static void keyboard_handle_key( bool handled = false; uint32_t modifiers = wlr_keyboard_get_modifiers(keyboard->device->keyboard); - if ((modifiers & WLR_MODIFIER_ALT) && event->state == WLR_BUTTON_PRESSED) { + if ((modifiers & WLR_MODIFIER_ALT) && event->state == WLR_KEY_PRESSED) { for (int i = 0; i < nsyms; i++) { handled = handle_keybinding(server, syms[i]); } |