From e3edab8a4c5d0257874534b01f52956ec13e7ccc Mon Sep 17 00:00:00 2001 From: Taiyu Date: Thu, 13 Aug 2015 12:23:56 -0700 Subject: [PATCH] change workspace layout when trying to split it --- sway/commands.c | 3 +++ 1 file changed, 3 insertions(+) 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 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;