Merge pull request #2036 from Airblader/bug-2015

Make resize grow|shrink width|height work for a nested split in the s…
This commit is contained in:
Michael Stapelberg
2015-10-26 09:14:28 +01:00
2 changed files with 16 additions and 1 deletions

View File

@ -615,7 +615,7 @@ static bool cmd_resize_tiling_width_height(I3_CMD, Con *current, const char *way
while (current->type != CT_WORKSPACE &&
current->type != CT_FLOATING_CON &&
con_orientation(current->parent) != search_orientation)
(con_orientation(current->parent) != search_orientation || con_num_children(current->parent) == 1))
current = current->parent;
/* get the default percentage */