aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-03-29 13:49:46 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-03-29 22:11:08 -0400
commit718502c815d0af81b4ab71fb6b86976b5403adf9 (patch)
treecc742f51839399e04633e2ff17ffe7a90a267270 /swaybar
parentSome layer shell fixes (diff)
downloadsway-718502c815d0af81b4ab71fb6b86976b5403adf9.tar.gz
sway-718502c815d0af81b4ab71fb6b86976b5403adf9.tar.zst
sway-718502c815d0af81b4ab71fb6b86976b5403adf9.zip
Iterate over workspaces backwards
Diffstat (limited to 'swaybar')
-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,
137 double x = 0; 137 double x = 0;
138 if (config->workspace_buttons) { 138 if (config->workspace_buttons) {
139 struct swaybar_workspace *ws; 139 struct swaybar_workspace *ws;
140 wl_list_for_each(ws, &output->workspaces, link) { 140 wl_list_for_each_reverse(ws, &output->workspaces, link) {
141 uint32_t h = render_workspace_button( 141 uint32_t h = render_workspace_button(
142 cairo, config, ws, &x, output->height); 142 cairo, config, ws, &x, output->height);
143 max_height = h > max_height ? h : max_height; 143 max_height = h > max_height ? h : max_height;