aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorKirill Primak <vyivel@posteo.net>2021-09-05 12:53:58 +0300
committerSimon Ser <contact@emersion.fr>2021-09-05 12:31:46 +0200
commit72b0491ca04de6e373ee14142e47de241b605bf8 (patch)
treedceacb2225813bd47194789624fe86e985fc4ce2 /sway/tree
parent69a7b9215e7bf5296891913337055bc9e0d84d88 (diff)
view: fix saved buffer order
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/view.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}