diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-02 13:53:40 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-02 13:53:40 -0400 |
commit | ef50d84be1180a7ddd73e1273ebb77503b3f36c4 (patch) | |
tree | bf5839b029a827272691bfd298f0822effebd9db /swaybar | |
parent | Fix use-after-free with block hotspots (diff) | |
download | sway-ef50d84be1180a7ddd73e1273ebb77503b3f36c4.tar.gz sway-ef50d84be1180a7ddd73e1273ebb77503b3f36c4.tar.zst sway-ef50d84be1180a7ddd73e1273ebb77503b3f36c4.zip |
Render blocks the correct order
Diffstat (limited to 'swaybar')
-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 a62e1d01..6f3b0788 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -230,7 +230,7 @@ static uint32_t render_status_line_i3bar(cairo_t *cairo, | |||
230 | uint32_t max_height = 0; | 230 | uint32_t max_height = 0; |
231 | bool edge = true; | 231 | bool edge = true; |
232 | struct i3bar_block *block; | 232 | struct i3bar_block *block; |
233 | wl_list_for_each_reverse(block, &status->blocks, link) { | 233 | wl_list_for_each(block, &status->blocks, link) { |
234 | uint32_t h = render_status_block(cairo, config, output, | 234 | uint32_t h = render_status_block(cairo, config, output, |
235 | block, x, height, focused, edge); | 235 | block, x, height, focused, edge); |
236 | max_height = h > max_height ? h : max_height; | 236 | max_height = h > max_height ? h : max_height; |