summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrti <[email protected]>2023-01-19 23:32:36 +0100
committerGitHub <[email protected]>2023-01-19 23:32:36 +0100
commitdbe2be6a363a9db2bacf96447badf3d04ece4587 (patch)
tree924e429d7e029062c5840280903f054b3907b124
parentd3df665f0332f20e42d326f0be8c2a499ec10f0b (diff)
fix: dim color on focus parent (#102)
-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,