Treat stacking containers as if they are in vertical orientation, add testcase

This commit is contained in:
Michael Stapelberg
2010-07-17 01:27:47 +02:00
parent 09c6b587d3
commit 69e5c0f6ce
4 changed files with 88 additions and 2 deletions

View File

@ -332,7 +332,7 @@ void tree_render() {
void tree_next(char way, orientation_t orientation) {
/* 1: get the first parent with the same orientation */
Con *parent = focused->parent;
while (parent->orientation != orientation) {
while (con_orientation(parent) != orientation) {
LOG("need to go one level further up\n");
/* if the current parent is an output, we are at a workspace
* and the orientation still does not match */
@ -377,7 +377,7 @@ void tree_move(char way, orientation_t orientation) {
if (focused->type == CT_WORKSPACE)
return;
bool level_changed = false;
while (parent->orientation != orientation) {
while (con_orientation(parent) != orientation) {
LOG("need to go one level further up\n");
/* if the current parent is an output, we are at a workspace
* and the orientation still does not match */