summaryrefslogtreecommitdiff
path: root/sway/commands/move.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-11-01 13:01:15 +0100
committerGitHub <[email protected]>2018-11-01 13:01:15 +0100
commit8ad06f0ec554da0ded551fc1b83f9cd0b3fa2a27 (patch)
tree8399de2ba00a8a0dd57f49dfc30455c330500b54 /sway/commands/move.c
parent480b03b734e6d1d068859b254d8ace4fb07b2c54 (diff)
parent9fc736f4e1804b06538191786500f927ba0cda13 (diff)
Merge pull request #3041 from RyanDwyer/marks-props-to-container
Move view marks properties to container struct
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) {
}
destination = seat_get_focus_inactive(seat, &new_output->node);
} else if (strcasecmp(argv[1], "mark") == 0) {
- struct sway_view *dest_view = view_find_mark(argv[2]);
- if (dest_view == NULL) {
+ struct sway_container *dest_con = container_find_mark(argv[2]);
+ if (dest_con == NULL) {
return cmd_results_new(CMD_FAILURE, "move",
"Mark '%s' not found", argv[2]);
}
- destination = &dest_view->container->node;
+ destination = &dest_con->node;
} else {
return cmd_results_new(CMD_INVALID, "move", expected_syntax);
}