From f0404f6d75bd42a637ddbe7d65a748c9d78ef75d Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 22 Feb 2018 22:40:02 +0100 Subject: [PATCH] surface: don't reset frame_callback_list on resize --- types/wlr_surface.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/types/wlr_surface.c b/types/wlr_surface.c index e2588167..d63fc1f1 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -170,12 +170,6 @@ static bool wlr_surface_update_size(struct wlr_surface *surface, height = tmp; } - struct wlr_frame_callback *cb, *tmp; - wl_list_for_each_safe(cb, tmp, &state->frame_callback_list, link) { - wl_resource_destroy(cb->resource); - } - wl_list_init(&state->frame_callback_list); - bool update_damage = false; if (width != state->width || height != state->height) { // Damage the whole surface on resize