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

route_click: Correctly eat the event
This commit is contained in:
Orestis Floros 2020-08-01 09:43:26 +02:00 committed by GitHub
commit e5992eed16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -277,7 +277,9 @@ static void route_click(Con *con, xcb_button_press_event_t *event, const bool mo
}
/* Avoid propagating events to clients, since the user expects
* $mod+click to be handled by i3. */
goto done;
xcb_allow_events(conn, XCB_ALLOW_ASYNC_POINTER, event->time);
xcb_flush(conn);
return;
}
/* 8: otherwise, check for border/decoration clicks and resize */
if ((dest == CLICK_BORDER || dest == CLICK_DECORATION) &&