mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
output-damage: stop listening for output mode events
These will go away.
This commit is contained in:
parent
fecbaa2bd6
commit
19dfe99496
2 changed files with 0 additions and 10 deletions
|
@ -54,7 +54,6 @@ struct wlr_output_damage {
|
|||
} events;
|
||||
|
||||
struct wl_listener output_destroy;
|
||||
struct wl_listener output_mode;
|
||||
struct wl_listener output_needs_frame;
|
||||
struct wl_listener output_damage;
|
||||
struct wl_listener output_frame;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue