From 22327ef300a60294e8a1bc847aac4d4576d3f6c6 Mon Sep 17 00:00:00 2001 From: RAR27 Date: Fri, 2 Jun 2023 18:46:39 -0400 Subject: [PATCH] fix: crash when splitting inside tabbed container (#180) --- sway/desktop/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 3472e12f..b9de2025 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -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,