Do not propagate $mod+right click to clients

This commit is contained in:
Orestis Floros 2020-04-09 16:08:41 +02:00
parent b590ca076c
commit 93e96f4e6b
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3
1 changed files with 4 additions and 2 deletions

View File

@ -281,7 +281,9 @@ static int route_click(Con *con, xcb_button_press_event_t *event, const bool mod
/* 7: floating modifier pressed, initiate a resize */ /* 7: floating modifier pressed, initiate a resize */
if (dest == CLICK_INSIDE && mod_pressed && event->detail == XCB_BUTTON_CLICK_RIGHT) { if (dest == CLICK_INSIDE && mod_pressed && event->detail == XCB_BUTTON_CLICK_RIGHT) {
if (floating_mod_on_tiled_client(con, event)) 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; return 1;
} }
/* 8: otherwise, check for border/decoration clicks and resize */ /* 8: otherwise, check for border/decoration clicks and resize */