From dbe2be6a363a9db2bacf96447badf3d04ece4587 Mon Sep 17 00:00:00 2001 From: rti Date: Thu, 19 Jan 2023 23:32:36 +0100 Subject: [PATCH] fix: dim color on focus parent (#102) --- sway/desktop/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 36be155e..81a965b9 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -1008,7 +1008,7 @@ static void render_containers_linear(struct sway_output *output, .dim_color = view_is_urgent(view) ? config->dim_inactive_colors.urgent : config->dim_inactive_colors.unfocused, - .dim = child->current.focused ? 0.0f: config->dim_inactive, + .dim = child->current.focused || parent->focused ? 0.0f: config->dim_inactive, // no corner radius if no gaps (allows smart_gaps to work as expected) .corner_radius = output->current.active_workspace->current_gaps.top == 0 ? 0 : child->corner_radius,