diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-13 15:30:18 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-13 15:30:18 -0400 |
commit | 0dc1d87490eaadbe245af7406b0e5ca4d53f17a0 (patch) | |
tree | 4f3b569afac0436960e4627b25ec87f102103e31 /sway | |
parent | 94e81fd64c4f63815047fa1ad895cade9afa8bd4 (diff) | |
parent | 7d294213d1bcfd90052a533588e7d29d1aa96e88 (diff) |
Merge pull request #25 from taiyu-len/master
split workspace bug
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index da33c5de..0adda3e7 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -235,6 +235,13 @@ static bool _do_split(struct sway_config *config, int argc, char **argv, int lay return false; } swayc_t *focused = get_focused_container(&root_container); + if (focused->type == C_WORKSPACE) { + sway_log(L_DEBUG, "Dont split workspaces"); + if (focused->children->length == 0) { + focused->layout = layout; + } + return true; + } swayc_t *parent = focused->parent; sway_log(L_DEBUG, "Splitting %p vertically with %p", parent, focused); int index = remove_container_from_parent(parent, focused); |