aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-12-24 14:28:04 -0600
committerGitHub <noreply@github.com>2020-12-24 14:28:04 -0600
commita42613db9d9f6debfa4fb2363d75af9457d238ed (patch)
tree62eb40a5c2fccf9c869229ae14e1cd8f76a13049
parent44ef698d6ef48a41b0df7c4c47d8b880efdbdf33 (diff)
parent67896e9d8b98f679faf4456e26e82057c1884789 (diff)
Merge pull request #66 from richardipsum/master
fix undeclared WLR_KEY_PRESSED
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 730e46a..00b544f 100644
--- a/dwl.c
+++ b/dwl.c
@@ -856,7 +856,7 @@ keypress(struct wl_listener *listener, void *data)
int handled = 0;
uint32_t mods = wlr_keyboard_get_modifiers(kb->device->keyboard);
/* On _press_, attempt to process a compositor keybinding. */
- if (event->state == WLR_KEY_PRESSED)
+ if (event->state == WL_KEYBOARD_KEY_STATE_PRESSED)
for (i = 0; i < nsyms; i++)
handled = keybinding(mods, syms[i]) || handled;