types/wlr_input_device: move output_name field to wlr_pointer and wlr_touch

This commit is contained in:
Simon Zeni 2022-03-08 16:45:03 -05:00
parent 2001441a37
commit a92e5f8d46
9 changed files with 18 additions and 6 deletions

View file

@ -440,8 +440,7 @@ void create_pointer(struct wlr_wl_seat *seat, struct wlr_wl_output *output) {
snprintf(name, sizeof(name), "wayland-pointer-%s", seat->name);
wlr_pointer_init(&pointer->wlr_pointer, &wl_pointer_impl, name);
/* TODO: move output_name to pointer/touch */
pointer->wlr_pointer.base.output_name = strdup(output->wlr_output.name);
pointer->wlr_pointer.output_name = strdup(output->wlr_output.name);
pointer->seat = seat;
pointer->output = output;