From: Michael Stapelberg Date: Sat, 23 Jul 2011 19:48:14 +0000 (+0200) Subject: Bugfix: Correctly resize when clicking on the border of a stacked con X-Git-Tag: 4.0~14^2~102 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=062ce3ef0309f64c5c0bf4078c44bac4b170a1b4;p=i3%2Fi3 Bugfix: Correctly resize when clicking on the border of a stacked con Runs the same code as for non-stacked / non-tabbed containers, but on the parent of the container (which is the stacked / tabbed con, since route_click gets called with the child). --- diff --git a/src/click.c b/src/click.c index 74e59885..acfcad89 100644 --- a/src/click.c +++ b/src/click.c @@ -221,12 +221,9 @@ static int route_click(Con *con, xcb_button_press_event_t *event, bool mod_press } if (in_stacked) { - /* for stacked/tabbed cons, floating modifier + right click resizes the - * parent container */ - if (mod_pressed && event->detail == 3) - if (floating_mod_on_tiled_client(con->parent, event)) - return 1; - goto done; + /* for stacked/tabbed cons, the resizing applies to the parent + * container */ + con = con->parent; } /* 7: floating modifier pressed, initiate a resize */ @@ -236,7 +233,7 @@ static int route_click(Con *con, xcb_button_press_event_t *event, bool mod_press } /* 8: otherwise, check for border/decoration clicks and resize */ else if (dest == CLICK_BORDER || dest == CLICK_DECORATION) { - DLOG("Should trry resizing (tiling)\n"); + DLOG("Trying to resize (tiling)\n"); tiling_resize(con, event, dest); }