From b1d820c492de873264cd954111b7d04389f40cb4 Mon Sep 17 00:00:00 2001 From: Louis Taylor Date: Mon, 26 Nov 2018 22:35:20 +0000 Subject: Correct WLR_BUTTON_PRESSED to WLR_KEY_PRESSED This worked since it was the same value, but results in compile warnings. --- tinywl/tinywl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinywl') 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]); } -- cgit v1.2.3