Fix mouse button grab swallowing
commit12d16d92e74b3293274ddbfa004308e332bc639d
authorBrad Jorsch <anomie@users.sourceforge.net>
Mon, 26 Apr 2010 17:56:36 +0000 (26 13:56 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 26 Apr 2010 21:23:56 +0000 (26 23:23 +0200)
treea4fcbacb51a7827a6dff26c2133dd167f6cf11d5
parentb5759552633c60c90d96e421d3827fad6a21e676
Fix mouse button grab swallowing

We grab Mod+Button events for our own purposes, and swallow them using
XAllowEvents(AsyncPointer) to prevent the client window from seeing
them. But if events are coming in fast enough (e.g. via fast wheel
scrolling) so that multiple grabbed events are in the queue, the second
queued event would be allowed to leak through to the client by the
unconditional XAllowEvents(ReplayPointer) a few lines later.
src/event.c