aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-10-21 17:21:23 +0200
committerSimon Ser <contact@emersion.fr>2020-11-11 10:58:38 +0100
commit7693f61d813869f7f8b3c658f610a16f6283b24f (patch)
treeab5df7c5da7bf1108eae9a2df6b248994ac5ee38 /backend/libinput
parent238d1c078fb03338e9f271d98f7bf6b1fc399285 (diff)
Replace wlr_key_state with wl_keyboard_key_state
There's no reason to have duplicate enums
Diffstat (limited to 'backend/libinput')
-rw-r--r--backend/libinput/keyboard.c4
1 files changed, 2 insertions, 2 deletions
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;