mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Replace wlr_key_state with wl_keyboard_key_state
There's no reason to have duplicate enums
This commit is contained in:
parent
238d1c078f
commit
7693f61d81
9 changed files with 26 additions and 28 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue