summaryrefslogtreecommitdiff
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorrti <[email protected]>2023-01-27 04:33:04 +0000
committerGitHub <[email protected]>2023-01-26 23:33:04 -0500
commit9345749a9047b088893347abba7be5a4dcc7f7ac (patch)
tree88e7feec7b7cf09f4bf2ae4274084a9ab66f900e /sway/desktop/render.c
parent8f8a5c0492e07de80f874c9741ee904b864e25b2 (diff)
fix: no dim on parent select in tabbed and stacked (#107)
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c4
1 files 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,