sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit a7414885d2a1ed4ab09869492547e2eaa09b7beb
parent 661cdac2d648f1f2abcaa2304c0b19d997a06088
Author: Mukundan314 <mukundan314@gmail.com>
Date:   Mon, 11 Jan 2021 13:15:50 +0530

Fix #5940

Fallback to focused_statusline instead of statusline on focused output

Diffstat:
Mswaybar/render.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/swaybar/render.c b/swaybar/render.c @@ -269,7 +269,9 @@ static uint32_t render_status_block(cairo_t *cairo, } double text_y = height / 2.0 - text_height / 2.0; cairo_move_to(cairo, offset, (int)floor(text_y)); - uint32_t color = block->color_set ? block->color : config->colors.statusline; + uint32_t color = output->focused ? + config->colors.focused_statusline : config->colors.statusline; + color = block->color_set ? block->color : color; color = block->urgent ? config->colors.urgent_workspace.text : color; cairo_set_source_u32(cairo, color); pango_printf(cairo, config->font, output->scale,