fix: no dim on parent select in tabbed and stacked (#107)

This commit is contained in:
rti 2023-01-27 04:33:04 +00:00 committed by GitHub
parent 8f8a5c0492
commit 9345749a90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,