diff options
author | 2019-03-26 20:32:50 -0700 | |
---|---|---|
committer | 2019-03-26 23:38:23 -0400 | |
commit | 3a31889d7cb00c28724bc093653b3015393c5cb4 (patch) | |
tree | 5d6e3cda7a29ac0804f3d76a38d1c26a9b8cd695 /sway | |
parent | Update README.uk.md (diff) | |
download | sway-3a31889d7cb00c28724bc093653b3015393c5cb4.tar.gz sway-3a31889d7cb00c28724bc093653b3015393c5cb4.tar.zst sway-3a31889d7cb00c28724bc093653b3015393c5cb4.zip |
Fix crash for floating command on scratchpad window
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands/floating.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/commands/floating.c b/sway/commands/floating.c index 82109369..5df9b1bf 100644 --- a/sway/commands/floating.c +++ b/sway/commands/floating.c | |||
@@ -45,7 +45,10 @@ struct cmd_results *cmd_floating(int argc, char **argv) { | |||
45 | 45 | ||
46 | container_set_floating(container, wants_floating); | 46 | container_set_floating(container, wants_floating); |
47 | 47 | ||
48 | arrange_workspace(container->workspace); | 48 | // Floating containers in the scratchpad should be ignored |
49 | if (container->workspace) { | ||
50 | arrange_workspace(container->workspace); | ||
51 | } | ||
49 | 52 | ||
50 | return cmd_results_new(CMD_SUCCESS, NULL); | 53 | return cmd_results_new(CMD_SUCCESS, NULL); |
51 | } | 54 | } |