Bugfix: Only go to the parent container in resizing if that is actually a split container
(as opposed to a workspace) This fixes a regression in resizing. We do need testcases for these things.
This commit is contained in:
parent
60bfc3a600
commit
1e5cd4b769
|
@ -130,7 +130,7 @@ static bool tiling_resize(Con *con, const xcb_button_press_event_t *event, const
|
||||||
/* Since the container might either be the child *or* already a split
|
/* Since the container might either be the child *or* already a split
|
||||||
* container (in the case of a nested split container), we need to make
|
* container (in the case of a nested split container), we need to make
|
||||||
* sure that we are dealing with the split container here. */
|
* sure that we are dealing with the split container here. */
|
||||||
if (con_is_leaf(con))
|
if (con_is_leaf(con) && con->parent->type == CT_CON)
|
||||||
con = con->parent;
|
con = con->parent;
|
||||||
|
|
||||||
if ((con->layout == L_STACKED ||
|
if ((con->layout == L_STACKED ||
|
||||||
|
|
Loading…
Reference in New Issue