fix: dim color on focus parent (#102)

This commit is contained in:
rti 2023-01-19 23:32:36 +01:00 committed by GitHub
parent d3df665f03
commit dbe2be6a36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1008,7 +1008,7 @@ static void render_containers_linear(struct sway_output *output,
.dim_color = view_is_urgent(view) .dim_color = view_is_urgent(view)
? config->dim_inactive_colors.urgent ? config->dim_inactive_colors.urgent
: config->dim_inactive_colors.unfocused, : 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) // no corner radius if no gaps (allows smart_gaps to work as expected)
.corner_radius = output->current.active_workspace->current_gaps.top == 0 .corner_radius = output->current.active_workspace->current_gaps.top == 0
? 0 : child->corner_radius, ? 0 : child->corner_radius,