implement 'move' command in the new parser

This commit is contained in:
Michael Stapelberg
2010-05-11 22:46:49 +02:00
parent 98dbe63e35
commit a0e33c1d68
3 changed files with 23 additions and 2 deletions

View File

@ -271,6 +271,8 @@ void tree_next(char way, orientation_t orientation) {
void tree_move(char way, orientation_t orientation) {
/* 1: get the first parent with the same orientation */
Con *parent = focused->parent;
if (parent->type == CT_OUTPUT)
return;
bool level_changed = false;
while (parent->orientation != orientation) {
LOG("need to go one level further up\n");