|
|
|
@ -13,12 +13,6 @@ static void output_handle_destroy(struct wl_listener *listener, void *data) {
|
|
|
|
|
wlr_output_damage_destroy(output_damage);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void output_handle_mode(struct wl_listener *listener, void *data) {
|
|
|
|
|
struct wlr_output_damage *output_damage =
|
|
|
|
|
wl_container_of(listener, output_damage, output_mode);
|
|
|
|
|
wlr_output_damage_add_whole(output_damage);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void output_handle_needs_frame(struct wl_listener *listener,
|
|
|
|
|
void *data) {
|
|
|
|
|
struct wlr_output_damage *output_damage =
|
|
|
|
@ -94,8 +88,6 @@ struct wlr_output_damage *wlr_output_damage_create(struct wlr_output *output) {
|
|
|
|
|
|
|
|
|
|
wl_signal_add(&output->events.destroy, &output_damage->output_destroy);
|
|
|
|
|
output_damage->output_destroy.notify = output_handle_destroy;
|
|
|
|
|
wl_signal_add(&output->events.mode, &output_damage->output_mode);
|
|
|
|
|
output_damage->output_mode.notify = output_handle_mode;
|
|
|
|
|
wl_signal_add(&output->events.needs_frame, &output_damage->output_needs_frame);
|
|
|
|
|
output_damage->output_needs_frame.notify = output_handle_needs_frame;
|
|
|
|
|
wl_signal_add(&output->events.damage, &output_damage->output_damage);
|
|
|
|
@ -114,7 +106,6 @@ void wlr_output_damage_destroy(struct wlr_output_damage *output_damage) {
|
|
|
|
|
}
|
|
|
|
|
wl_signal_emit_mutable(&output_damage->events.destroy, output_damage);
|
|
|
|
|
wl_list_remove(&output_damage->output_destroy.link);
|
|
|
|
|
wl_list_remove(&output_damage->output_mode.link);
|
|
|
|
|
wl_list_remove(&output_damage->output_needs_frame.link);
|
|
|
|
|
wl_list_remove(&output_damage->output_damage.link);
|
|
|
|
|
wl_list_remove(&output_damage->output_frame.link);
|
|
|
|
|