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

@ -25,5 +25,4 @@ void wlr_input_device_finish(struct wlr_input_device *wlr_device) {
wl_list_remove(&wlr_device->events.destroy.listener_list);
free(wlr_device->name);
free(wlr_device->output_name);
}

View file

@ -29,4 +29,6 @@ void wlr_pointer_init(struct wlr_pointer *pointer,
void wlr_pointer_finish(struct wlr_pointer *pointer) {
wlr_input_device_finish(&pointer->base);
free(pointer->output_name);
}

View file

@ -21,4 +21,6 @@ void wlr_touch_init(struct wlr_touch *touch,
void wlr_touch_finish(struct wlr_touch *touch) {
wlr_input_device_finish(&touch->base);
free(touch->output_name);
}