diff options
author | Orestis Floros <orestisflo@gmail.com> | 2020-04-09 16:08:41 +0200 |
---|---|---|
committer | Orestis Floros <orestisflo@gmail.com> | 2020-04-09 16:08:41 +0200 |
commit | 93e96f4e6b28486c6b7be003e8db81bab30197ef (patch) | |
tree | b95fc11442a819b13d2c6e6a547c0050c73b452e | |
parent | b590ca076c030f07102518b270d78ed8a6da278f (diff) | |
download | i3-93e96f4e6b28486c6b7be003e8db81bab30197ef.tar.gz i3-93e96f4e6b28486c6b7be003e8db81bab30197ef.zip |
Do not propagate $mod+right click to clients
-rw-r--r-- | src/click.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/click.c b/src/click.c index cc12158a..2e622710 100644 --- a/src/click.c +++ b/src/click.c @@ -281,8 +281,10 @@ static int route_click(Con *con, xcb_button_press_event_t *event, const bool mod /* 7: floating modifier pressed, initiate a resize */ if (dest == CLICK_INSIDE && mod_pressed && event->detail == XCB_BUTTON_CLICK_RIGHT) { - if (floating_mod_on_tiled_client(con, event)) - return 1; + floating_mod_on_tiled_client(con, event); + /* Avoid propagating events to clients, since the user expects + * $mod + click to be handled by i3. */ + return 1; } /* 8: otherwise, check for border/decoration clicks and resize */ else if ((dest == CLICK_BORDER || dest == CLICK_DECORATION) && |