fix: crash when splitting inside tabbed container (#180)

This commit is contained in:
RAR27 2023-06-02 18:46:39 -04:00 committed by GitHub
parent c95306fcdf
commit 22327ef300
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1454,7 +1454,7 @@ static void render_containers_tabbed(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,