diff options
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r-- | sway/commands/move.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c index 9035e3e2..7d8c1f1a 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c | |||
@@ -488,12 +488,12 @@ static struct cmd_results *cmd_move_container(int argc, char **argv) { | |||
488 | } | 488 | } |
489 | destination = seat_get_focus_inactive(seat, &new_output->node); | 489 | destination = seat_get_focus_inactive(seat, &new_output->node); |
490 | } else if (strcasecmp(argv[1], "mark") == 0) { | 490 | } else if (strcasecmp(argv[1], "mark") == 0) { |
491 | struct sway_view *dest_view = view_find_mark(argv[2]); | 491 | struct sway_container *dest_con = container_find_mark(argv[2]); |
492 | if (dest_view == NULL) { | 492 | if (dest_con == NULL) { |
493 | return cmd_results_new(CMD_FAILURE, "move", | 493 | return cmd_results_new(CMD_FAILURE, "move", |
494 | "Mark '%s' not found", argv[2]); | 494 | "Mark '%s' not found", argv[2]); |
495 | } | 495 | } |
496 | destination = &dest_view->container->node; | 496 | destination = &dest_con->node; |
497 | } else { | 497 | } else { |
498 | return cmd_results_new(CMD_INVALID, "move", expected_syntax); | 498 | return cmd_results_new(CMD_INVALID, "move", expected_syntax); |
499 | } | 499 | } |