summaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authortaiyu <[email protected]>2015-08-28 11:03:10 -0700
committertaiyu <[email protected]>2015-08-28 11:03:10 -0700
commit1820b3f0bb97406aefb51ef44f2c60b4f4fa5165 (patch)
tree30e7ed34d3bb3aa5df1aba0797ea7d2b54dbcdb1 /sway/commands.c
parent4757ea6a1212dab6ee82421a20b152d1f16e44fb (diff)
move function redone
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 1d88e724..cd010913 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -351,13 +351,13 @@ static bool cmd_move(struct sway_config *config, int argc, char **argv) {
swayc_t *view = get_focused_container(&root_container);
if (strcasecmp(argv[0], "left") == 0) {
- move_container(view,&root_container,MOVE_LEFT);
+ move_container(view,MOVE_LEFT);
} else if (strcasecmp(argv[0], "right") == 0) {
- move_container(view,&root_container,MOVE_RIGHT);
+ move_container(view,MOVE_RIGHT);
} else if (strcasecmp(argv[0], "up") == 0) {
- move_container(view,&root_container,MOVE_UP);
+ move_container(view,MOVE_UP);
} else if (strcasecmp(argv[0], "down") == 0) {
- move_container(view,&root_container,MOVE_DOWN);
+ move_container(view,MOVE_DOWN);
} else if (strcasecmp(argv[0], "container") == 0 || strcasecmp(argv[0], "window") == 0) {
// "move container to workspace x"
if (!checkarg(argc, "move container/window", EXPECTED_EQUAL_TO, 4) ||