summaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorRAR27 <[email protected]>2023-06-02 18:46:39 -0400
committerGitHub <[email protected]>2023-06-02 18:46:39 -0400
commit22327ef300a60294e8a1bc847aac4d4576d3f6c6 (patch)
tree10e52c295835032a33c55ff1a8230e5295484ba6 /sway
parentc95306fcdf6fc11d4dd39309b392c0954784970a (diff)
fix: crash when splitting inside tabbed container (#180)
Diffstat (limited to 'sway')
-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 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,