diff options
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r-- | sway/commands/move.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c index aa06b168..8c3afae9 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c | |||
@@ -659,7 +659,7 @@ static struct cmd_results *cmd_move_in_direction( | |||
659 | return cmd_results_new(CMD_FAILURE, | 659 | return cmd_results_new(CMD_FAILURE, |
660 | "Cannot move workspaces in a direction"); | 660 | "Cannot move workspaces in a direction"); |
661 | } | 661 | } |
662 | if (container->scratchpad && !container->workspace) { | 662 | if (container_is_scratchpad_hidden(container)) { |
663 | return cmd_results_new(CMD_FAILURE, | 663 | return cmd_results_new(CMD_FAILURE, |
664 | "Cannot move a hidden scratchpad container"); | 664 | "Cannot move a hidden scratchpad container"); |
665 | } | 665 | } |
@@ -734,7 +734,7 @@ static struct cmd_results *cmd_move_to_position(int argc, char **argv) { | |||
734 | return cmd_results_new(CMD_FAILURE, "Only floating containers " | 734 | return cmd_results_new(CMD_FAILURE, "Only floating containers " |
735 | "can be moved to an absolute position"); | 735 | "can be moved to an absolute position"); |
736 | } | 736 | } |
737 | if (container->scratchpad && !container->workspace) { | 737 | if (container_is_scratchpad_hidden(container)) { |
738 | return cmd_results_new(CMD_FAILURE, | 738 | return cmd_results_new(CMD_FAILURE, |
739 | "Cannot move a hidden scratchpad container"); | 739 | "Cannot move a hidden scratchpad container"); |
740 | } | 740 | } |