aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/floating.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-22 07:55:31 -0500
committerGitHub <noreply@github.com>2019-01-22 07:55:31 -0500
commit71a37ad186ba3080338b2ecb5a3e640600aefc1f (patch)
tree28700e832965f9bac8150f72f02dd440b8e0ca32 /sway/commands/floating.c
parent8ce57f0a77f50315c83bae305e78091cc40175c2 (diff)
parentec0013b9f5203f03602fb13ed1b4b0fcd4fb4f5a (diff)
Merge pull request #3494 from ianyfan/commands
i3 command behaviour compatibility fixes
Diffstat (limited to 'sway/commands/floating.c')
-rw-r--r--sway/commands/floating.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sway/commands/floating.c b/sway/commands/floating.c
index 57bf0017..82109369 100644
--- a/sway/commands/floating.c
+++ b/sway/commands/floating.c
@@ -40,12 +40,7 @@ struct cmd_results *cmd_floating(int argc, char **argv) {
}
}
- if (container->scratchpad && !container->workspace) {
- return cmd_results_new(CMD_FAILURE,
- "Cannot set floating status on a hidden scratchpad container");
- }
-
- bool wants_floating =
+ bool wants_floating =
parse_boolean(argv[0], container_is_floating(container));
container_set_floating(container, wants_floating);