color-representation-v1: Fix missing destroy signal init

Fixes #4001

Reported-by: CreeperFace / @dy-tea
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-07-31 06:46:47 -07:00
parent c8b7600adc
commit dd3c63f5e6
No known key found for this signature in database

View file

@ -384,6 +384,8 @@ struct wlr_color_representation_manager_v1 *wlr_color_representation_manager_v1_
goto err_options; goto err_options;
} }
wl_signal_init(&manager->events.destroy);
manager->display_destroy.notify = handle_display_destroy; manager->display_destroy.notify = handle_display_destroy;
wl_display_add_destroy_listener(display, &manager->display_destroy); wl_display_add_destroy_listener(display, &manager->display_destroy);