From 1e5cd4b769d379ad3f2ec8bf9982ee5de98ce9b9 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 11 Nov 2011 19:19:14 +0000 Subject: [PATCH] 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. --- src/click.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || -- 2.39.5