fix: crash when splitting inside stacking container (#187)

This commit is contained in:
RAR27 2023-06-07 00:22:46 -04:00 committed by GitHub
parent 3e6626d6c3
commit edd7aa72bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1551,7 +1551,7 @@ static void render_containers_stacked(struct sway_output *output,
struct decoration_data deco_data = {
.alpha = current->alpha,
.dim_color = view_is_urgent(current->view)
.dim_color = current->view && view_is_urgent(current->view)
? config->dim_inactive_colors.urgent
: config->dim_inactive_colors.unfocused,
.dim = current->current.focused || parent->focused ? 0.0f : current->dim,