From b8f706ed1e08af0a8bff396f2878ed07171b1039 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 17 Sep 2007 13:50:36 +0000 Subject: [PATCH] - libX11-1.1.2-GetMotionEvents.patch: Fix the definition of XGetMotionEvents to match the argument order in the headers. (#274671) --- libX11-1.1.2-GetMotionEvents.patch | 14 ++++++++++++++ libX11.spec | 8 +++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 libX11-1.1.2-GetMotionEvents.patch diff --git a/libX11-1.1.2-GetMotionEvents.patch b/libX11-1.1.2-GetMotionEvents.patch new file mode 100644 index 0000000..2dd9527 --- /dev/null +++ b/libX11-1.1.2-GetMotionEvents.patch @@ -0,0 +1,14 @@ +diff -up libX11-1.1.2/src/GetMoEv.c.jx libX11-1.1.2/src/GetMoEv.c +--- libX11-1.1.2/src/GetMoEv.c.jx 2007-06-02 13:46:55.000000000 -0400 ++++ libX11-1.1.2/src/GetMoEv.c 2007-09-17 09:30:24.000000000 -0400 +@@ -33,9 +33,9 @@ in this Software without prior written a + + XTimeCoord *XGetMotionEvents( + register Display *dpy, ++ Window w, + Time start, + Time stop, +- Window w, + int *nEvents) /* RETURN */ + { + xGetMotionEventsReply rep; diff --git a/libX11.spec b/libX11.spec index 37999d8..31ad8bf 100644 --- a/libX11.spec +++ b/libX11.spec @@ -1,7 +1,7 @@ Summary: X.Org X11 libX11 runtime library Name: libX11 Version: 1.1.2 -Release: 2%{?dist} +Release: 3%{?dist} License: MIT/X11 Group: System Environment/Libraries URL: http://www.x.org @@ -15,6 +15,7 @@ Patch0: libX11-0.99.3-datadir-locale-dir-fix.patch # manually confirm each patch hunk before removal. Patch2: dont-forward-keycode-0.patch Patch3: bug-201284.patch +Patch4: libX11-1.1.2-GetMotionEvents.patch BuildRequires: pkgconfig # xproto >= 7.0.6 required @@ -56,6 +57,7 @@ X.Org X11 libX11 development package #%patch0 -p0 -b .datadir-locale-dir-fix %patch2 -p1 -b .dont-forward-keycode-0 %patch3 -p1 -b .3-bug201284 +%patch4 -p1 -b .getmoev %build %configure \ @@ -245,6 +247,10 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/*.3* %changelog +* Mon Sep 17 2007 Adam Jackson 1.1.2-3 +- libX11-1.1.2-GetMotionEvents.patch: Fix the definition of XGetMotionEvents + to match the argument order in the headers. (#274671) + * Tue Aug 21 2007 Adam Jackson - 1.1.2-2 - Rebuild for build id