view: fix saved buffer order

This commit is contained in:
Kirill Primak 2021-09-05 12:53:58 +03:00 committed by Simon Ser
parent 69a7b9215e
commit 72b0491ca0

View file

@ -1401,7 +1401,7 @@ static void view_save_buffer_iterator(struct wlr_surface *surface,
saved_buffer->y = view->container->surface_y + sy;
saved_buffer->transform = surface->current.transform;
wlr_surface_get_buffer_source_box(surface, &saved_buffer->source_box);
wl_list_insert(&view->saved_buffers, &saved_buffer->link);
wl_list_insert(view->saved_buffers.prev, &saved_buffer->link);
}
}