1 2

[PATCH] Correct WLR_BUTTON_PRESSED to WLR_KEY_PRESSED

Details
Message ID
<20181126223520.8560-1-louis@kragniz.eu>
DKIM signature
pass
Download raw message
Patch: +1 -1
This worked since it was the same value, but results in compile
warnings.
---
 tinywl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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]);
 		}
-- 
2.19.2
Details
Message ID
<20181127020945.GA14063@homura.localdomain>
In-Reply-To
<20181126223520.8560-1-louis@kragniz.eu> (view parent)
DKIM signature
permerror
Download raw message
Thanks!

To git.sr.ht:~sircmpwn/tinywl
   ba9cdd6..5e44d3b  master -> master