aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/floating.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/floating.c')
-rw-r--r--sway/commands/floating.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/commands/floating.c b/sway/commands/floating.c
index e95f3185..57bf0017 100644
--- a/sway/commands/floating.c
+++ b/sway/commands/floating.c
@@ -40,6 +40,11 @@ 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 =
parse_boolean(argv[0], container_is_floating(container));