fix: dim color on focus parent (#102)
This commit is contained in:
parent
d3df665f03
commit
dbe2be6a36
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue