sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 4e2cfe0526e1278abc9c7370e62a4dbdc4a9c63c
parent 5f25541022fb19a170360536985a0b200a01277a
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Mon, 17 Dec 2018 12:16:19 -0500

cmd_split: add null checks in do_split

Fixes a crash when running `split` commands with the workspace focused.

Diffstat:
Msway/commands/split.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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); }