route_click: Fix regression: release mouse

Fixes #4143
This commit is contained in:
Orestis Floros
2020-06-29 09:55:11 +02:00
committed by GitHub
parent 025743eaf9
commit 874d862507

View File

@ -272,13 +272,15 @@ 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);
/* Avoid propagating events to clients, since the user expects
* $mod + click to be handled by i3. */
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. */
goto done;
}
/* 8: otherwise, check for border/decoration clicks and resize */
else if ((dest == CLICK_BORDER || dest == CLICK_DECORATION) &&
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);