Make command move [direction] work with criteria

A container selected with criteria should be moved with the `move
[direction]` command, instead of this command always acting on the
focused container.
This commit is contained in:
Tony Crisci
2014-06-19 08:09:31 -04:00
committed by Michael Stapelberg
parent c936232545
commit c2b6b06da7
4 changed files with 68 additions and 22 deletions

View File

@ -10,8 +10,8 @@
#pragma once
/**
* Moves the current container in the given direction (TOK_LEFT, TOK_RIGHT,
* Moves the given container in the given direction (TOK_LEFT, TOK_RIGHT,
* TOK_UP, TOK_DOWN from cmdparse.l)
*
*/
void tree_move(int direction);
void tree_move(Con *con, int direction);