diff options
author | 2018-10-25 18:32:09 +0200 | |
---|---|---|
committer | 2018-10-25 18:32:09 +0200 | |
commit | 6b59533646ea50e843f594ba041109873e0db16b (patch) | |
tree | 5b088b441106cf669162c7793b2ef876ea30c864 /swaybar/render.c | |
parent | Merge pull request #2975 from RyanDwyer/deny-commands-when-no-outputs (diff) | |
parent | swaybar: when scrolling, check that there are workspaces to scroll on (diff) | |
download | sway-6b59533646ea50e843f594ba041109873e0db16b.tar.gz sway-6b59533646ea50e843f594ba041109873e0db16b.tar.zst sway-6b59533646ea50e843f594ba041109873e0db16b.zip |
Merge pull request #2973 from ianyfan/swaybar
swaybar: fix scrolling behaviour
Diffstat (limited to 'swaybar/render.c')
-rw-r--r-- | swaybar/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 85e7542f..4ebf922e 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -466,7 +466,7 @@ static uint32_t render_to_cairo(cairo_t *cairo, struct swaybar_output *output) { | |||
466 | x = 0; | 466 | x = 0; |
467 | if (config->workspace_buttons) { | 467 | if (config->workspace_buttons) { |
468 | struct swaybar_workspace *ws; | 468 | struct swaybar_workspace *ws; |
469 | wl_list_for_each_reverse(ws, &output->workspaces, link) { | 469 | wl_list_for_each(ws, &output->workspaces, link) { |
470 | uint32_t h = render_workspace_button(cairo, output, ws, &x); | 470 | uint32_t h = render_workspace_button(cairo, output, ws, &x); |
471 | max_height = h > max_height ? h : max_height; | 471 | max_height = h > max_height ? h : max_height; |
472 | } | 472 | } |