aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-13 15:30:18 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-13 15:30:18 -0400
commit0dc1d87490eaadbe245af7406b0e5ca4d53f17a0 (patch)
tree4f3b569afac0436960e4627b25ec87f102103e31
parentMerge pull request #23 from taiyu-len/master (diff)
parentstyle (diff)
downloadsway-0dc1d87490eaadbe245af7406b0e5ca4d53f17a0.tar.gz
sway-0dc1d87490eaadbe245af7406b0e5ca4d53f17a0.tar.zst
sway-0dc1d87490eaadbe245af7406b0e5ca4d53f17a0.zip
Merge pull request #25 from taiyu-len/master
split workspace bug
-rw-r--r--sway/commands.c7
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
235 return false; 235 return false;
236 } 236 }
237 swayc_t *focused = get_focused_container(&root_container); 237 swayc_t *focused = get_focused_container(&root_container);
238 if (focused->type == C_WORKSPACE) {
239 sway_log(L_DEBUG, "Dont split workspaces");
240 if (focused->children->length == 0) {
241 focused->layout = layout;
242 }
243 return true;
244 }
238 swayc_t *parent = focused->parent; 245 swayc_t *parent = focused->parent;
239 sway_log(L_DEBUG, "Splitting %p vertically with %p", parent, focused); 246 sway_log(L_DEBUG, "Splitting %p vertically with %p", parent, focused);
240 int index = remove_container_from_parent(parent, focused); 247 int index = remove_container_from_parent(parent, focused);