route_click: Correctly eat the event

Restores original intention of 93e96f4 after #4144
This commit is contained in:
Orestis Floros 2020-06-29 10:47:50 +02:00 committed by GitHub
parent a45eb8156c
commit 65e468edd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) &&