From 9345749a9047b088893347abba7be5a4dcc7f7ac Mon Sep 17 00:00:00 2001 From: rti Date: Fri, 27 Jan 2023 04:33:04 +0000 Subject: [PATCH] fix: no dim on parent select in tabbed and stacked (#107) --- sway/desktop/render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 0cbe0d62..4f59fa0e 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -1112,7 +1112,7 @@ static void render_containers_tabbed(struct sway_output *output, .dim_color = view_is_urgent(current->view) ? config->dim_inactive_colors.urgent : config->dim_inactive_colors.unfocused, - .dim = current->current.focused ? 0.0f: config->dim_inactive, + .dim = current->current.focused || parent->focused ? 0.0f: config->dim_inactive, .corner_radius = current->corner_radius, .saturation = current->saturation, .has_titlebar = true, @@ -1186,7 +1186,7 @@ static void render_containers_stacked(struct sway_output *output, .dim_color = view_is_urgent(current->view) ? config->dim_inactive_colors.urgent : config->dim_inactive_colors.unfocused, - .dim = current->current.focused ? 0.0f: config->dim_inactive, + .dim = current->current.focused || parent->focused ? 0.0f: config->dim_inactive, .saturation = current->saturation, .corner_radius = current->corner_radius, .has_titlebar = true,