diff options
author | Drew DeVault <[email protected]> | 2016-10-11 08:24:38 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2016-10-11 08:24:38 -0400 |
commit | ce713efcd23b82a7d85c1976ddfbd46f08133ff6 (patch) | |
tree | c7e0986aa282c00bcc12cde70820ffbca07cb6b5 /sway/commands/move.c | |
parent | 9ad6fc592dd6bd5bf29e60b03186bba32f5c9fa3 (diff) | |
parent | 166c2a3687d2819184457490132dd0c109238873 (diff) |
Merge pull request #945 from thejan2009/workspace_layout
Fixes dealing with workspace_layout and related bugs [rfc]
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 48e9d562..4819d9ef 100644 --- a/sway/commands/move.c +++ b/sway/commands/move.c @@ -37,7 +37,7 @@ struct cmd_results *cmd_move(int argc, char **argv) { if (!view->children || view->children->length == 0) { return cmd_results_new(CMD_FAILURE, "move", "Cannot move an empty workspace"); } - view = new_container(view, view->layout); + view = new_container(view, view->workspace_layout); } if (view->type != C_CONTAINER && view->type != C_VIEW) { return cmd_results_new(CMD_FAILURE, "move", "Can only move containers and views."); } @@ -65,7 +65,7 @@ struct cmd_results *cmd_move(int argc, char **argv) { if (!view->children || view->children->length == 0) { return cmd_results_new(CMD_FAILURE, "move", "Cannot move an empty workspace"); } - view = new_container(view, view->layout); + view = new_container(view, view->workspace_layout); } else if (view->type != C_CONTAINER && view->type != C_VIEW) { return cmd_results_new(CMD_FAILURE, "move", "Can only move containers and views."); } else if (!(output = output_by_name(argv[3], &abs_pos))) { |