Handle hidden scratchpad containers in commands

This fixes the handling of hidden scratchpad containers for some
commands. For the most part, this just prevents running the commands on
hidden scratchpad containers, but there are some commands that have some
special handling for them.
This commit is contained in:
Brian Ashworth 2019-01-15 02:21:46 -05:00 committed by emersion
parent bbd312c95a
commit 3087942c35
6 changed files with 28 additions and 1 deletions

View file

@ -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);