backend/libinput: rework touch interface

The wlr_libinput_input_device now owns its wlr_touch, instead of creating
a new wlr_libinput_input_device for it.
This commit is contained in:
Simon Zeni 2022-02-23 14:06:02 -05:00 committed by Kirill Primak
parent d750c5ac67
commit 4f4dd95223
4 changed files with 63 additions and 87 deletions

View file

@ -249,6 +249,9 @@ struct libinput_device *wlr_libinput_get_device_handle(
case WLR_INPUT_DEVICE_SWITCH:
dev = device_from_switch(wlr_dev->switch_device);
break;
case WLR_INPUT_DEVICE_TOUCH:
dev = device_from_touch(wlr_dev->touch);
break;
default:
dev = (struct wlr_libinput_input_device *)wlr_dev;
break;