summaryrefslogtreecommitdiff
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorRAR27 <[email protected]>2023-06-07 00:22:46 -0400
committerGitHub <[email protected]>2023-06-07 00:22:46 -0400
commitedd7aa72bc4ea8766d6a82325d7c9b36fe9a2025 (patch)
treeb571ca2ecef2c7ef20901f30f10097e291af7aa3 /sway/desktop/render.c
parent3e6626d6c3c876cd043c8589a59c448016bff377 (diff)
fix: crash when splitting inside stacking container (#187)
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c2
1 files changed, 1 insertions, 1 deletions
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,