X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fmove.c;h=9c0f310f769f641fc2dfb58e92446f269f78650e;hb=c2b6b06da7db49bd3ecd6fa1561ef2b407ff64a3;hp=44045f25f96c1d833168375dad88a260a1441542;hpb=c9362325454fe1fea000be277ba736bfe813df14;p=i3%2Fi3 diff --git a/src/move.c b/src/move.c index 44045f25..9c0f310f 100644 --- a/src/move.c +++ b/src/move.c @@ -132,18 +132,17 @@ static void move_to_output_directed(Con *con, direction_t direction) { } /* - * Moves the current container in the given direction (D_LEFT, D_RIGHT, + * Moves the given container in the given direction (D_LEFT, D_RIGHT, * D_UP, D_DOWN). * */ -void tree_move(int direction) { +void tree_move(Con *con, int direction) { position_t position; Con *target; DLOG("Moving in direction %d\n", direction); /* 1: get the first parent with the same orientation */ - Con *con = focused; if (con->type == CT_WORKSPACE) { DLOG("Not moving workspace\n");