Merge pull request #4144 from i3/orestisfl-patch-2

route_click: Fix regression: release mouse
This commit is contained in:
Ingo Bürk 2020-06-29 10:25:00 +02:00 committed by GitHub
commit a45eb8156c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}