mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-13 04:27:56 -05:00
backend/libinput: add support for LIBINPUT_SWITCH_KEYPAD_SLIDE
This commit is contained in:
parent
c1452d8811
commit
3676ab4df0
2 changed files with 3 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue