GNOME Bugzilla – Bug 756649
events: Don't use XIEvent serial numbers
Last modified: 2015-12-22 01:27:33 UTC
See patch.
Created attachment 313383 [details] [review] events: Don't use XIEvent serial numbers XInput2 uses the raw sequence number for XIEvent serials, which only matches the serial number in XEvents up to 16 bits[0]. So in order to be able to make reliable comparisons with serials from other events or calls to XNextRequest(), always use the field from the original XEvent rather than the XIEvent serial (at least until we can get libXi fixed). This (partially) reverts commit 35dd1e644dbc238. [0] http://cgit.freedesktop.org/xorg/lib/libX11/tree/src/XlibInt.c#n265
Review of attachment 313383 [details] [review]: code is fine but the commit message reference to the libX11 code that computes serials for core events is confusing since the bug is actually in libXi's XInputWireToEvent() extension hook.
libXi commit 380861589690bcbe8b04b7a2c23b5dd5d10c4bf8 fixes this issue
Did we go with the libXi fix for this? Closing if so.
Thanks for the reminder, I just released libXi 1.7.6 with the fix for this. http://lists.x.org/archives/xorg-announce/2015-December/002664.html