diff options
author | Taiyu <taiyu.len@gmail.com> | 2015-08-13 12:02:56 -0700 |
---|---|---|
committer | Taiyu <taiyu.len@gmail.com> | 2015-08-13 12:02:56 -0700 |
commit | 57c28f96fd38d05f4374a3ae20b694b6440b3261 (patch) | |
tree | 95266111560f1acec562aaf1766617ef00c4592e | |
parent | Merge pull request #23 from taiyu-len/master (diff) | |
download | sway-57c28f96fd38d05f4374a3ae20b694b6440b3261.tar.gz sway-57c28f96fd38d05f4374a3ae20b694b6440b3261.tar.zst sway-57c28f96fd38d05f4374a3ae20b694b6440b3261.zip |
split workspace bug
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index da33c5de..2e28e69d 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -235,6 +235,10 @@ 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 | return true; | ||
241 | } | ||
238 | swayc_t *parent = focused->parent; | 242 | swayc_t *parent = focused->parent; |
239 | sway_log(L_DEBUG, "Splitting %p vertically with %p", parent, focused); | 243 | sway_log(L_DEBUG, "Splitting %p vertically with %p", parent, focused); |
240 | int index = remove_container_from_parent(parent, focused); | 244 | int index = remove_container_from_parent(parent, focused); |