aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/floating.c
diff options
context:
space:
mode:
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) {
40 } 40 }
41 } 41 }
42 42
43 if (container->scratchpad && !container->workspace) { 43 bool wants_floating =
44 return cmd_results_new(CMD_FAILURE,
45 "Cannot set floating status on a hidden scratchpad container");
46 }
47
48 bool wants_floating =
49 parse_boolean(argv[0], container_is_floating(container)); 44 parse_boolean(argv[0], container_is_floating(container));
50 45
51 container_set_floating(container, wants_floating); 46 container_set_floating(container, wants_floating);