aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-03-29 13:49:46 -0400
committerFurkan Sahin <furkan-dev@proton.me>2018-03-29 13:49:46 -0400
commit18b72bd34df275c1b90431e526a8fdf3af1b66d0 (patch)
treecc742f51839399e04633e2ff17ffe7a90a267270
parent1ba2f4b35401f30962904d0666fb1e107c6201c8 (diff)
Iterate over workspaces backwards
-rw-r--r--swaybar/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/render.c b/swaybar/render.c
index 317b0f65..f797873c 100644
--- a/swaybar/render.c
+++ b/swaybar/render.c
@@ -137,7 +137,7 @@ static uint32_t render_to_cairo(cairo_t *cairo,
double x = 0;
if (config->workspace_buttons) {
struct swaybar_workspace *ws;
- wl_list_for_each(ws, &output->workspaces, link) {
+ wl_list_for_each_reverse(ws, &output->workspaces, link) {
uint32_t h = render_workspace_button(
cairo, config, ws, &x, output->height);
max_height = h > max_height ? h : max_height;