Merge pull request #4144 from i3/orestisfl-patch-2
route_click: Fix regression: release mouse
This commit is contained in:
commit
a45eb8156c
12
src/click.c
12
src/click.c
@ -272,14 +272,16 @@ static void route_click(Con *con, xcb_button_press_event_t *event, const bool mo
|
||||
|
||||
/* 7: floating modifier pressed, initiate a resize */
|
||||
if (dest == CLICK_INSIDE && mod_pressed && is_right_click) {
|
||||
floating_mod_on_tiled_client(con, event);
|
||||
if (floating_mod_on_tiled_client(con, event)) {
|
||||
return;
|
||||
}
|
||||
/* Avoid propagating events to clients, since the user expects
|
||||
* $mod + click to be handled by i3. */
|
||||
return;
|
||||
* $mod+click to be handled by i3. */
|
||||
goto done;
|
||||
}
|
||||
/* 8: otherwise, check for border/decoration clicks and resize */
|
||||
else if ((dest == CLICK_BORDER || dest == CLICK_DECORATION) &&
|
||||
is_left_or_right_click) {
|
||||
if ((dest == CLICK_BORDER || dest == CLICK_DECORATION) &&
|
||||
is_left_or_right_click) {
|
||||
DLOG("Trying to resize (tiling)\n");
|
||||
tiling_resize(con, event, dest, dest == CLICK_DECORATION && !was_focused);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user