diff options
Diffstat (limited to 'sway/commands/sticky.c')
-rw-r--r-- | sway/commands/sticky.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/sticky.c b/sway/commands/sticky.c index 6cac8a45..15b726cc 100644 --- a/sway/commands/sticky.c +++ b/sway/commands/sticky.c @@ -29,7 +29,8 @@ struct cmd_results *cmd_sticky(int argc, char **argv) { container->is_sticky = parse_boolean(argv[0], container->is_sticky); - if (container->is_sticky) { + if (container->is_sticky && + (!container->scratchpad || container->workspace)) { // move container to active workspace struct sway_workspace *active_workspace = output_get_active_workspace(container->workspace->output); |