From 1891a385ad0288f66384cab69f2f7ae4ef7e5eec Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 6 Mar 2011 13:35:07 +0100 Subject: [PATCH] Bugfix: also stop searching for resize cons when reaching a floatingcon (Thanks julien) --- src/click.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/click.c b/src/click.c index 8028f683..31b925fa 100644 --- a/src/click.c +++ b/src/click.c @@ -39,9 +39,12 @@ static bool tiling_resize_for_border(Con *con, border_t border, xcb_button_press Con *first = NULL, *second = NULL; Con *resize_con = con; while (resize_con->type != CT_WORKSPACE && - resize_con->parent->orientation != orientation) + resize_con->type != CT_FLOATING_CON && + resize_con->parent->orientation != orientation) resize_con = resize_con->parent; + if (resize_con->type != CT_WORKSPACE && + resize_con->type != CT_FLOATING_CON && resize_con->parent->orientation == orientation) { first = resize_con; second = (way == 'n') ? TAILQ_NEXT(first, nodes) : TAILQ_PREV(first, nodes_head, nodes); -- 2.39.5