aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-02-22 22:40:02 +0100
committeremersion <contact@emersion.fr>2018-02-22 22:40:02 +0100
commitf0404f6d75bd42a637ddbe7d65a748c9d78ef75d (patch)
tree0daa25879966621c3b91db98ea2b313345a1c2dd
parent2e7d8862549a786c5aafcbe20db290377e3228ac (diff)
surface: don't reset frame_callback_list on resize
-rw-r--r--types/wlr_surface.c6
1 files changed, 0 insertions, 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