Merge pull request #662 from emersion/surface-resize-frame-done

surface: don't reset frame_callback_list on resize
This commit is contained in:
Tony Crisci 2018-02-22 17:33:22 -05:00 committed by GitHub
commit 1c1b5b1b17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -170,12 +170,6 @@ static bool wlr_surface_update_size(struct wlr_surface *surface,
height = tmp; 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; bool update_damage = false;
if (width != state->width || height != state->height) { if (width != state->width || height != state->height) {
// Damage the whole surface on resize // Damage the whole surface on resize