Bugfix: Fix tabbed container resizing check (Thanks julien)

Fixes: #534

Turns out that my check was wrong. We actually just need to make sure we are
dealing with the split container.
This commit is contained in:
Michael Stapelberg 2011-11-10 19:35:36 +00:00
parent ed66a30410
commit df095f9d68
1 changed files with 4 additions and 7 deletions

View File

@ -127,13 +127,10 @@ static bool tiling_resize(Con *con, const xcb_button_press_event_t *event, const
* window. Decorations will end up next to each other and the user * window. Decorations will end up next to each other and the user
* expects to switch to a window by clicking on its decoration. */ * expects to switch to a window by clicking on its decoration. */
/* To make the check actually work in case of a h-split container, we /* Since the container might either be the child *or* already a split
* need to find the resize con in this function (as opposed to in * container (in the case of a nested split container), we need to make
* tiling_resize_for_border()). The con which was passed is the actualy * sure that we are dealing with the split container here. */
* child window, not the split container. */ if (con_is_leaf(con))
while (con->type != CT_WORKSPACE &&
con->type != CT_FLOATING_CON &&
con->parent->orientation != VERT)
con = con->parent; con = con->parent;
if ((con->layout == L_STACKED || if ((con->layout == L_STACKED ||