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).
This commit is contained in:
Michael Stapelberg 2011-07-23 21:48:14 +02:00
parent b87742172b
commit 062ce3ef03
1 changed files with 4 additions and 7 deletions

View File

@ -221,12 +221,9 @@ static int route_click(Con *con, xcb_button_press_event_t *event, bool mod_press
} }
if (in_stacked) { if (in_stacked) {
/* for stacked/tabbed cons, floating modifier + right click resizes the /* for stacked/tabbed cons, the resizing applies to the parent
* parent container */ * container */
if (mod_pressed && event->detail == 3) con = con->parent;
if (floating_mod_on_tiled_client(con->parent, event))
return 1;
goto done;
} }
/* 7: floating modifier pressed, initiate a resize */ /* 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 */ /* 8: otherwise, check for border/decoration clicks and resize */
else if (dest == CLICK_BORDER || dest == CLICK_DECORATION) { 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); tiling_resize(con, event, dest);
} }