backend/libinput: add support for LIBINPUT_SWITCH_KEYPAD_SLIDE

This commit is contained in:
Aleksei Bavshin 2026-02-07 17:48:16 -08:00
parent c1452d8811
commit 3676ab4df0
No known key found for this signature in database
GPG key ID: 4F071603387A382A
2 changed files with 3 additions and 1 deletions

View file

@ -39,7 +39,8 @@ void handle_switch_toggle(struct libinput_event *event,
break;
#if HAVE_LIBINPUT_SWITCH_KEYPAD_SLIDE
case LIBINPUT_SWITCH_KEYPAD_SLIDE:
return;
wlr_event.switch_type = WLR_SWITCH_TYPE_KEYPAD_SLIDE;
break;
#endif
}
switch (libinput_event_switch_get_switch_state(sevent)) {

View file

@ -36,6 +36,7 @@ struct wlr_switch {
enum wlr_switch_type {
WLR_SWITCH_TYPE_LID,
WLR_SWITCH_TYPE_TABLET_MODE,
WLR_SWITCH_TYPE_KEYPAD_SLIDE,
};
enum wlr_switch_state {