summaryrefslogtreecommitdiff
path: root/sway/commands/split.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2019-01-27 18:06:50 -0500
committerGitHub <[email protected]>2019-01-27 18:06:50 -0500
commit783fadab284c79c8e13625e5e2a2eefae02c75d3 (patch)
tree795c5c69a7fcfc9336115ac157a41b943190f206 /sway/commands/split.c
parent897250c65fb4d7123361dc6f77c2824179ed8885 (diff)
parent20aa8ee67dc528299dbc8735220a1c081c7ff9f6 (diff)
Merge pull request #3423 from RyanDwyer/fullscreen-global
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);
}