aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/move.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-10-31 21:27:38 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-11-01 18:09:51 +1000
commit9fc736f4e1804b06538191786500f927ba0cda13 (patch)
tree8399de2ba00a8a0dd57f49dfc30455c330500b54 /sway/commands/move.c
parentMerge pull request #3040 from RyanDwyer/border-props-to-container (diff)
downloadsway-9fc736f4e1804b06538191786500f927ba0cda13.tar.gz
sway-9fc736f4e1804b06538191786500f927ba0cda13.tar.zst
sway-9fc736f4e1804b06538191786500f927ba0cda13.zip
Move view marks properties to container struct
Like border properties, this will be needed to implement layout saving and restoring.
Diffstat (limited to 'sway/commands/move.c')
-rw-r--r--sway/commands/move.c6
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 }