]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Only go to the parent container in resizing if that is actually a split container
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 11 Nov 2011 19:19:14 +0000 (19:19 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 11 Nov 2011 19:19:14 +0000 (19:19 +0000)
(as opposed to a workspace)

This fixes a regression in resizing. We do need testcases for these things.

src/click.c

index d3f9da49dd7c81279378dbf095480c424059a29f..0f0ea0dc36bde7c297dda2bab4d4143a0e8071c4 100644 (file)
@@ -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 ||