Revert "Revert "fix undeclared WLR_KEY_PRESSED""

This reverts commit a11f2bbc7a.
This commit is contained in:
Devin J. Pohly 2021-02-16 13:13:48 -06:00
parent 4798450944
commit e8192b4fc9

2
dwl.c
View File

@ -1284,7 +1284,7 @@ keypress(struct wl_listener *listener, void *data)
wlr_idle_notify_activity(idle, seat);
/* 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;