summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/desktop/render.c2
1 files changed, 1 insertions, 1 deletions
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,