]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: also stop searching for resize cons when reaching a floatingcon (Thanks julien)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 6 Mar 2011 12:35:07 +0000 (13:35 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 6 Mar 2011 12:35:07 +0000 (13:35 +0100)
src/click.c

index 8028f683cef2c29c7d809772e9d675af268e5f82..31b925fab410ede5303c350b92bf4dc1c179ab76 100644 (file)
@@ -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);