From: Michael Stapelberg Date: Fri, 11 Nov 2011 19:19:14 +0000 (+0000) Subject: Bugfix: Only go to the parent container in resizing if that is actually a split container X-Git-Tag: 4.1~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1e5cd4b769d379ad3f2ec8bf9982ee5de98ce9b9;p=i3%2Fi3 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. --- diff --git a/src/click.c b/src/click.c index d3f9da49..0f0ea0dc 100644 --- a/src/click.c +++ b/src/click.c @@ -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 * container (in the case of a nested split container), we need to make * 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; if ((con->layout == L_STACKED ||