commit 3a31889d7cb00c28724bc093653b3015393c5cb4 parent e9d096468a3fe9d8346dd97a67e050938f0befde Author: Ashkan Kiani <ashkan.k.kiani@gmail.com> Date: Tue, 26 Mar 2019 20:32:50 -0700 Fix crash for floating command on scratchpad window Diffstat:
| M | sway/commands/floating.c | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sway/commands/floating.c b/sway/commands/floating.c @@ -45,7 +45,10 @@ struct cmd_results *cmd_floating(int argc, char **argv) { container_set_floating(container, wants_floating); - arrange_workspace(container->workspace); + // Floating containers in the scratchpad should be ignored + if (container->workspace) { + arrange_workspace(container->workspace); + } return cmd_results_new(CMD_SUCCESS, NULL); }