fix: no dim on parent select in tabbed and stacked (#107)
This commit is contained in:
parent
8f8a5c0492
commit
9345749a90
|
@ -1112,7 +1112,7 @@ static void render_containers_tabbed(struct sway_output *output,
|
||||||
.dim_color = view_is_urgent(current->view)
|
.dim_color = view_is_urgent(current->view)
|
||||||
? config->dim_inactive_colors.urgent
|
? config->dim_inactive_colors.urgent
|
||||||
: config->dim_inactive_colors.unfocused,
|
: 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,
|
.corner_radius = current->corner_radius,
|
||||||
.saturation = current->saturation,
|
.saturation = current->saturation,
|
||||||
.has_titlebar = true,
|
.has_titlebar = true,
|
||||||
|
@ -1186,7 +1186,7 @@ static void render_containers_stacked(struct sway_output *output,
|
||||||
.dim_color = view_is_urgent(current->view)
|
.dim_color = view_is_urgent(current->view)
|
||||||
? config->dim_inactive_colors.urgent
|
? config->dim_inactive_colors.urgent
|
||||||
: config->dim_inactive_colors.unfocused,
|
: 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,
|
.saturation = current->saturation,
|
||||||
.corner_radius = current->corner_radius,
|
.corner_radius = current->corner_radius,
|
||||||
.has_titlebar = true,
|
.has_titlebar = true,
|
||||||
|
|
Loading…
Reference in a new issue