From 874d862507c2f9b5912bd1d76af5e27e8fa3f897 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Mon, 29 Jun 2020 09:55:11 +0200 Subject: [PATCH] route_click: Fix regression: release mouse Fixes #4143 --- src/click.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/click.c b/src/click.c index 64d78315..8a1de1b9 100644 --- a/src/click.c +++ b/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); }