diff options
author | Taiyu <taiyu.len@gmail.com> | 2015-08-13 12:23:56 -0700 |
---|---|---|
committer | Taiyu <taiyu.len@gmail.com> | 2015-08-13 12:23:56 -0700 |
commit | e3edab8a4c5d0257874534b01f52956ec13e7ccc (patch) | |
tree | abb6dd308eb7a9d2c4478714a4c2c92c7db22fd9 | |
parent | split workspace bug (diff) | |
download | sway-e3edab8a4c5d0257874534b01f52956ec13e7ccc.tar.gz sway-e3edab8a4c5d0257874534b01f52956ec13e7ccc.tar.zst sway-e3edab8a4c5d0257874534b01f52956ec13e7ccc.zip |
change workspace layout when trying to split it
-rw-r--r-- | sway/commands.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 2e28e69d..0935cafc 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -237,6 +237,9 @@ static bool _do_split(struct sway_config *config, int argc, char **argv, int lay | |||
237 | swayc_t *focused = get_focused_container(&root_container); | 237 | swayc_t *focused = get_focused_container(&root_container); |
238 | if (focused->type == C_WORKSPACE) { | 238 | if (focused->type == C_WORKSPACE) { |
239 | sway_log(L_DEBUG, "Dont split workspaces"); | 239 | sway_log(L_DEBUG, "Dont split workspaces"); |
240 | if(focused->children->length == 0) { | ||
241 | focused->layout = layout; | ||
242 | } | ||
240 | return true; | 243 | return true; |
241 | } | 244 | } |
242 | swayc_t *parent = focused->parent; | 245 | swayc_t *parent = focused->parent; |