How can I catch all mouse events?j

Peter Hutterer peter at cs.unisa.edu.au
Mon Jun 2 18:46:21 PDT 2008


On Mon, Jun 02, 2008 at 09:36:40PM -0400, Benjamin M. Schwartz wrote:
> Beautiful!  I tried running an Async XGrabButton on the root window, and
> it works.  However, despite being in Async mode, the mouse button presses
> never reach the underlying window.  I can't click on anything until I kill
> my program, because it's absorbing all the button presses.  What am I
> doing wrong?  How do I allow the button press event to continue propagating?

GrabModeSync on the grab, and then XAllowEvents with ReplayPointer.

async just means that the server continues processing events rather than
freezing the device. 

Cheers,
  Peter



More information about the xorg mailing list