XIQueryDevicePointer generates an XIO error

Peter Hutterer peter.hutterer at who-t.net
Thu May 14 04:48:30 PDT 2009


On Wed, May 13, 2009 at 07:12:42PM +0200, Mark Dokter wrote:
> I am playing around with the XI2 stuff and always get an error when using 
> XIQueryDevicePointer(). The function seems to do what its supposed to and 
> gives me the pointer coordinates, but as soon as I call it again or another 
> function like XCloseDisplay() I get an error like this:
> 
> XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0
>       after 13 requests (12 known processed) with 0 events remaining.

this is most likely the  wrong length field in the reply. I just encountered
this yesterday with the XIPassiveGrabDevice request and it looks like
XIQueryDevicePointer suffers from the same.
it's a one-line fix in Xi/querydp.c, change to "rep.length = 2;"

This function has changed a bit here already, so please bear with me for a
few more days then I'll push a set of fixes.

thanks a lot for testing.

Cheers,
  Peter


More information about the xorg-devel mailing list