aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/split.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-07-26 23:00:58 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-07-28 22:41:04 +1000
commitc95847c9e17cf42a8ff23f791232c0ddd671ba6e (patch)
treeba1b1ef2d3afa822539bc049b68e8eec60067233 /sway/commands/split.c
parentda2a87f6c71bfe90a4d77542bfc7ed22899f67be (diff)
Allow splitting a floating view
Diffstat (limited to 'sway/commands/split.c')
-rw-r--r--sway/commands/split.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sway/commands/split.c b/sway/commands/split.c
index 313799da..a8eddf54 100644
--- a/sway/commands/split.c
+++ b/sway/commands/split.c
@@ -10,10 +10,6 @@
static struct cmd_results *do_split(int layout) {
struct sway_container *con = config->handler_context.current_container;
- if (container_is_floating(con)) {
- return cmd_results_new(CMD_FAILURE, "split",
- "Can't split a floating view");
- }
struct sway_container *parent = container_split(con, layout);
container_create_notify(parent);
arrange_windows(parent->parent);