summaryrefslogtreecommitdiff
path: root/sway/commands/split.c
diff options
context:
space:
mode:
authorRyan Dwyer <[email protected]>2019-01-25 08:29:21 +1000
committerRyan Dwyer <[email protected]>2019-01-25 08:29:21 +1000
commit20aa8ee67dc528299dbc8735220a1c081c7ff9f6 (patch)
tree685de48be3db51fc01510ccf051e2b63a4655fba /sway/commands/split.c
parent75406bb93b96091d30e52922d0f319530fe65471 (diff)
Implement fullscreen global
Diffstat (limited to 'sway/commands/split.c')
-rw-r--r--sway/commands/split.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/commands/split.c b/sway/commands/split.c
index 06b7df5e..b7ab7b79 100644
--- a/sway/commands/split.c
+++ b/sway/commands/split.c
@@ -26,7 +26,11 @@ static struct cmd_results *do_split(int layout) {
container_flatten(con->parent->parent);
}
- arrange_workspace(ws);
+ if (root->fullscreen_global) {
+ arrange_root();
+ } else {
+ arrange_workspace(ws);
+ }
return cmd_results_new(CMD_SUCCESS, NULL);
}