From 72b0491ca04de6e373ee14142e47de241b605bf8 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sun, 5 Sep 2021 12:53:58 +0300 Subject: [PATCH] view: fix saved buffer order --- sway/tree/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/tree/view.c b/sway/tree/view.c index 3ab971f7..200b7c2a 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -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); } }