1 |
chithanh 11/12/21 19:41:42 |
2 |
|
3 |
Added: xinput-1.5.3-inputproto-2.1.patch |
4 |
Log: |
5 |
Unbreak package when built against inputproto-2.1, bug #395555. |
6 |
|
7 |
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 x11-apps/xinput/files/xinput-1.5.3-inputproto-2.1.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-apps/xinput/files/xinput-1.5.3-inputproto-2.1.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-apps/xinput/files/xinput-1.5.3-inputproto-2.1.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: xinput-1.5.3-inputproto-2.1.patch |
16 |
=================================================================== |
17 |
From 4be60c90008ac48e72e819e078ce957fd003a509 Mon Sep 17 00:00:00 2001 |
18 |
From: Peter Hutterer <peter.hutterer@×××××.net> |
19 |
Date: Fri, 12 Aug 2011 04:20:21 +0000 |
20 |
Subject: list: don't use defines for checking server version. |
21 |
|
22 |
Otherwise we run into the old problem again: recompiling xinput against |
23 |
newer inputproto headers will appear to change the version support, |
24 |
potentially causing errors or other misbehaviours. |
25 |
|
26 |
Signed-off-by: Peter Hutterer <peter.hutterer@×××××.net> |
27 |
Reviewed-by: Jeremy Huddleston <jeremyhu@×××××.com> |
28 |
--- |
29 |
diff --git a/src/list.c b/src/list.c |
30 |
index b4649eb..b791e81 100644 |
31 |
--- a/src/list.c |
32 |
+++ b/src/list.c |
33 |
@@ -248,14 +248,14 @@ static int |
34 |
list_xi2(Display *display, |
35 |
enum print_format format) |
36 |
{ |
37 |
- int major = XI_2_Major, |
38 |
- minor = XI_2_Minor; |
39 |
+ int major = 2, |
40 |
+ minor = 0; |
41 |
int ndevices; |
42 |
int i, j; |
43 |
XIDeviceInfo *info, *dev; |
44 |
|
45 |
if (XIQueryVersion(display, &major, &minor) != Success || |
46 |
- (major * 1000 + minor) < (XI_2_Major * 1000 + XI_2_Minor)) |
47 |
+ (major * 1000 + minor) < 2000) |
48 |
{ |
49 |
fprintf(stderr, "XI2 not supported.\n"); |
50 |
return EXIT_FAILURE; |
51 |
-- |
52 |
cgit v0.9.0.2-2-gbebe |