[PATCH 3/5] xkb: use GPE for XKB fake motion events.
Simon Thum
simon.thum at gmx.de
Wed Apr 14 13:10:27 PDT 2010
Am 14.04.2010 03:08, schrieb Peter Hutterer:
> Section 4.6.1 of the XKB spec says that "the initial event always moves the
> cursor the distance specified in the action [...]", so skip the
> POINTER_ACCELERATE flag for GPE, it would cause double-acceleration.
Sounds fine.
> + events = InitEventList(GetMaximumEventsNum());
> + OsBlockSignals();
> + nevents = GetPointerEvents(events, ptr,
> + MotionNotify, 0,
> + gpe_flags, 0, 2, (int[]){x, y});
> + OsReleaseSignals();
If you can be sure ptr is a XTEST device (which I assume is the normal
case), you ought to be able to drop the signal blocking. In theory. If
no, the xtest GPE should be checked as well ;)
It's good you're catching up with those!
Reviewed-by: Simon Thum <simon.thum at gmx.de>
More information about the xorg-devel
mailing list