From 7693f61d813869f7f8b3c658f610a16f6283b24f Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Wed, 21 Oct 2020 17:21:23 +0200 Subject: Replace wlr_key_state with wl_keyboard_key_state There's no reason to have duplicate enums --- backend/libinput/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/libinput') diff --git a/backend/libinput/keyboard.c b/backend/libinput/keyboard.c index 93605e77..d5207f54 100644 --- a/backend/libinput/keyboard.c +++ b/backend/libinput/keyboard.c @@ -72,10 +72,10 @@ void handle_keyboard_key(struct libinput_event *event, libinput_event_keyboard_get_key_state(kbevent); switch (state) { case LIBINPUT_KEY_STATE_RELEASED: - wlr_event.state = WLR_KEY_RELEASED; + wlr_event.state = WL_KEYBOARD_KEY_STATE_RELEASED; break; case LIBINPUT_KEY_STATE_PRESSED: - wlr_event.state = WLR_KEY_PRESSED; + wlr_event.state = WL_KEYBOARD_KEY_STATE_PRESSED; break; } wlr_event.update_state = true; -- cgit v1.2.3