fix sequence number copy - the cookie already had (a potentially

different) sequence number copied (#965347)
This commit is contained in:
Peter Hutterer 2013-05-21 12:21:25 +10:00
parent f333a6eaa0
commit 63bafba8fd
2 changed files with 5 additions and 9 deletions

View File

@ -15,14 +15,6 @@ diff --git a/src/XExtInt.c b/src/XExtInt.c
index 507573b..2139c6a 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -915,6 +915,7 @@ static void xge_copy_to_cookie(xGenericEvent* ev,
cookie->type = ev->type;
cookie->evtype = ev->evtype;
cookie->extension = ev->extension;
+ cookie->serial = ev->sequenceNumber;
}
static Bool
@@ -1521,6 +1522,7 @@ wireToDeviceEvent(xXIDeviceEvent *in, XGenericEventCookie* cookie)
out = next_block(&ptr_lib, sizeof(XIDeviceEvent));
out->display = cookie->display;

View File

@ -5,7 +5,7 @@
Summary: X.Org X11 libXi runtime library
Name: libXi
Version: 1.7.1
Release: 2%{?gitdate:.%{gitdate}git%{gitversion}}%{dist}
Release: 3%{?gitdate:.%{gitdate}git%{gitversion}}%{dist}
License: MIT
Group: System Environment/Libraries
URL: http://www.x.org
@ -92,6 +92,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*.3*
%changelog
* Tue May 21 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.7.1-3
- fix sequence number copy - the cookie already had (a potentially
different) sequence number copied (#965347)
* Fri May 17 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.7.1-2
- copy the sequence number into XI2 events