From 7c4d521f99c6e2ff4da619239568f78a916d752f Mon Sep 17 00:00:00 2001 From: Micah Gorrell Date: Sun, 14 May 2023 16:14:33 -0600 Subject: [PATCH] Corrected the order when moving 'left' items to the end, so that they are not switched around each time --- mng-varcol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mng-varcol.c b/mng-varcol.c index 73be698..e44a4d1 100644 --- a/mng-varcol.c +++ b/mng-varcol.c @@ -82,8 +82,8 @@ void varcol(Monitor *m) i++; } - /* Reattach th eleft clients to the main list */ - wl_list_for_each_safe(c, tmp, &left_clients, link) { + /* Reattach the left clients to the main list */ + wl_list_for_each_reverse_safe(c, tmp, &left_clients, link) { wl_list_remove(&c->link); wl_list_insert(clients.prev, &c->link); }