mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
backend/libinput: rework switch interface
The wlr_libinput_input_device now owns its wlr_switch, instead of creating a new wlr_libinput_input_device for it.
This commit is contained in:
parent
d60cdad3ea
commit
d750c5ac67
4 changed files with 44 additions and 45 deletions
|
|
@ -246,6 +246,9 @@ struct libinput_device *wlr_libinput_get_device_handle(
|
|||
case WLR_INPUT_DEVICE_POINTER:
|
||||
dev = device_from_pointer(wlr_dev->pointer);
|
||||
break;
|
||||
case WLR_INPUT_DEVICE_SWITCH:
|
||||
dev = device_from_switch(wlr_dev->switch_device);
|
||||
break;
|
||||
default:
|
||||
dev = (struct wlr_libinput_input_device *)wlr_dev;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue