mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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:
parent
7dfee50350
commit
edfb332b24
8 changed files with 24 additions and 15 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue