summaryrefslogtreecommitdiff
path: root/tinywl.c
diff options
context:
space:
mode:
authorLouis Taylor <[email protected]>2018-11-26 22:35:20 +0000
committerDrew DeVault <[email protected]>2018-11-26 21:09:23 -0500
commit5e44d3b49815ea1badf3276b763bb6eb5a2c00b9 (patch)
tree186cba5ded462f12d28a15a6a1eedde7d4a5a1d8 /tinywl.c
parentba9cdd6c66fe2b85dbe9516eb9f6a65a2a7686c7 (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.c')
-rw-r--r--tinywl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinywl.c b/tinywl.c
index 6939b60..bf98495 100644
--- a/tinywl.c
+++ b/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]);
}