diff --git a/sway/commands/split.c b/sway/commands/split.c index 85a53a55..84385fa9 100644 --- a/sway/commands/split.c +++ b/sway/commands/split.c @@ -18,7 +18,7 @@ static struct cmd_results *do_split(int layout) { workspace_split(ws, layout); } - if (con->parent->parent) { + if (con && con->parent && con->parent->parent) { container_flatten(con->parent->parent); }