From edd7aa72bc4ea8766d6a82325d7c9b36fe9a2025 Mon Sep 17 00:00:00 2001 From: RAR27 Date: Wed, 7 Jun 2023 00:22:46 -0400 Subject: [PATCH] fix: crash when splitting inside stacking container (#187) --- 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 47449bb6..4ebfb941 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -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,