diff options
author | Louis Taylor <louis@kragniz.eu> | 2018-11-26 22:35:20 +0000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-11-26 21:09:23 -0500 |
commit | b1d820c492de873264cd954111b7d04389f40cb4 (patch) | |
tree | ff40658456ae1c8ee0e6c2bd339aeaab499efdfc /tinywl/tinywl.c | |
parent | ec20afd6d831e1a70f9d1178b0da1039da6700b2 (diff) |
Correct WLR_BUTTON_PRESSED to WLR_KEY_PRESSED
This worked since it was the same value, but results in compile
warnings.
Diffstat (limited to 'tinywl/tinywl.c')
-rw-r--r-- | tinywl/tinywl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c index 6939b604..bf98495d 100644 --- a/tinywl/tinywl.c +++ b/tinywl/tinywl.c @@ -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]); } |