diff options
-rw-r--r-- | sway/commands/split.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
18 | workspace_split(ws, layout); | 18 | workspace_split(ws, layout); |
19 | } | 19 | } |
20 | 20 | ||
21 | if (con->parent->parent) { | 21 | if (con && con->parent && con->parent->parent) { |
22 | container_flatten(con->parent->parent); | 22 | container_flatten(con->parent->parent); |
23 | } | 23 | } |
24 | 24 | ||