backend/libinput: rework tablet interface

The wlr_libinput_device owns its wlr_tablet and its associated wlr_tablet_tools
This commit is contained in:
Simon Zeni 2022-02-24 11:00:11 -05:00 committed by Kirill Primak
parent 4f4dd95223
commit c8456086a1
4 changed files with 116 additions and 213 deletions

View file

@ -252,6 +252,9 @@ struct libinput_device *wlr_libinput_get_device_handle(
case WLR_INPUT_DEVICE_TOUCH:
dev = device_from_touch(wlr_dev->touch);
break;
case WLR_INPUT_DEVICE_TABLET_TOOL:
dev = device_from_tablet(wlr_dev->tablet);
break;
default:
dev = (struct wlr_libinput_input_device *)wlr_dev;
break;