mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
Florian Müllner
3a63d58d9e
events: Don't use XIEvent serial numbers
XInput2 uses the raw sequence number for XIEvent serials[0], which only matches the serial number in XEvents up to 16 bits[1]. 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/libXi/commit?id=5d43d4914dcabb6d [1] http://cgit.freedesktop.org/xorg/lib/libX11/tree/src/XlibInt.c#n265 https://bugzilla.gnome.org/show_bug.cgi?id=756649
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%