mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-14 05:34:28 -04: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;
|
break;
|
||||||
#if HAVE_LIBINPUT_SWITCH_KEYPAD_SLIDE
|
#if HAVE_LIBINPUT_SWITCH_KEYPAD_SLIDE
|
||||||
case LIBINPUT_SWITCH_KEYPAD_SLIDE:
|
case LIBINPUT_SWITCH_KEYPAD_SLIDE:
|
||||||
return;
|
wlr_event.switch_type = WLR_SWITCH_TYPE_KEYPAD_SLIDE;
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
switch (libinput_event_switch_get_switch_state(sevent)) {
|
switch (libinput_event_switch_get_switch_state(sevent)) {
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ struct wlr_switch {
|
||||||
enum wlr_switch_type {
|
enum wlr_switch_type {
|
||||||
WLR_SWITCH_TYPE_LID,
|
WLR_SWITCH_TYPE_LID,
|
||||||
WLR_SWITCH_TYPE_TABLET_MODE,
|
WLR_SWITCH_TYPE_TABLET_MODE,
|
||||||
|
WLR_SWITCH_TYPE_KEYPAD_SLIDE,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum wlr_switch_state {
|
enum wlr_switch_state {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue