types/wlr_touch: add base wlr_input_device

wlr_touch now owns its wlr_input_device. It will be initialized when the
tablet tool is initialized, and finished when the touch is destroyed.
This commit is contained in:
Simon Zeni 2022-02-01 11:51:50 -05:00 committed by Kirill Primak
parent 7dfee50350
commit edfb332b24
8 changed files with 24 additions and 15 deletions

View file

@ -819,7 +819,7 @@ void create_wl_touch(struct wlr_wl_seat *seat) {
wlr_input_device_destroy(wlr_dev);
return;
}
wlr_touch_init(wlr_dev->touch, NULL);
wlr_touch_init(wlr_dev->touch, NULL, wlr_dev->name);
wl_touch_add_listener(wl_touch, &touch_listener, dev);
wlr_signal_emit_safe(&seat->backend->backend.events.new_input, wlr_dev);