XTest and multiple pointers
Peter Hutterer
peter.hutterer at who-t.net
Tue Sep 9 05:52:54 PDT 2008
On Tue, Sep 09, 2008 at 11:24:48AM +0200, Florian Echtler wrote:
> we're currently trying to control multiple X pointers through XTest.
> Moving them using XTestFakeDeviceMotionEvent works as expected; however,
> sending a button event using XTestFakeDeviceButtonEvent doesn't.
>
> In fact, the test program from [1] segfaults in XNextEvent
> (xorg/lib/libX11/src/NextEvent.c, line 51). qelt (and therefore
> dpy->head) doesn't point anywhere sensible, so is this perhaps an
> internal bug?
This is usually caused by the event being passed in not being the right size.
Xlib is picky about the size of events, so you must make sure you always pass
in an XEvent struct (96 bytes), even if what you actually use is a
XDeviceMotionEvent (or whatever).
Could this be the cause of your issue?
I can only test this on my other box next week, not before then.
Cheers,
Peter
More information about the xorg
mailing list