diff options
author | Mukundan314 <mukundan314@gmail.com> | 2021-01-11 13:15:50 +0530 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-11 10:51:21 +0100 |
commit | a7414885d2a1ed4ab09869492547e2eaa09b7beb (patch) | |
tree | db206911453627bf662a962462fc6114679207d9 /swaybar | |
parent | desktop/xwayland: use index constants for atom array (diff) | |
download | sway-a7414885d2a1ed4ab09869492547e2eaa09b7beb.tar.gz sway-a7414885d2a1ed4ab09869492547e2eaa09b7beb.tar.zst sway-a7414885d2a1ed4ab09869492547e2eaa09b7beb.zip |
Fix #5940
Fallback to focused_statusline instead of statusline on focused output
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/render.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 8816abef..df066622 100644 --- a/swaybar/render.c +++ b/swaybar/render.c | |||
@@ -269,7 +269,9 @@ static uint32_t render_status_block(cairo_t *cairo, | |||
269 | } | 269 | } |
270 | double text_y = height / 2.0 - text_height / 2.0; | 270 | double text_y = height / 2.0 - text_height / 2.0; |
271 | cairo_move_to(cairo, offset, (int)floor(text_y)); | 271 | cairo_move_to(cairo, offset, (int)floor(text_y)); |
272 | uint32_t color = block->color_set ? block->color : config->colors.statusline; | 272 | uint32_t color = output->focused ? |
273 | config->colors.focused_statusline : config->colors.statusline; | ||
274 | color = block->color_set ? block->color : color; | ||
273 | color = block->urgent ? config->colors.urgent_workspace.text : color; | 275 | color = block->urgent ? config->colors.urgent_workspace.text : color; |
274 | cairo_set_source_u32(cairo, color); | 276 | cairo_set_source_u32(cairo, color); |
275 | pango_printf(cairo, config->font, output->scale, | 277 | pango_printf(cairo, config->font, output->scale, |