From 34dea3d9d26a4e50c435a0fc51933fea956743cd Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Tue, 22 Jan 2019 11:07:32 +0000 Subject: commands: allow tiled containers to be stickied This also stops stickied containers from losing its sticky status when it is tiled, allowing it to be immediately stickied when floated again. --- sway/commands/floating.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/commands/floating.c') diff --git a/sway/commands/floating.c b/sway/commands/floating.c index 57bf0017..52e4ed08 100644 --- a/sway/commands/floating.c +++ b/sway/commands/floating.c @@ -45,7 +45,7 @@ struct cmd_results *cmd_floating(int argc, char **argv) { "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); -- cgit v1.2.3 From ec0013b9f5203f03602fb13ed1b4b0fcd4fb4f5a Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Tue, 22 Jan 2019 11:08:37 +0000 Subject: commands: allow setting floating on scratchpad containers --- sway/commands/floating.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sway/commands/floating.c') diff --git a/sway/commands/floating.c b/sway/commands/floating.c index 52e4ed08..82109369 100644 --- a/sway/commands/floating.c +++ b/sway/commands/floating.c @@ -40,11 +40,6 @@ 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)); -- cgit v1.2.3