[PATCH xinput v2 1/2] list: drop XIQueryVersion call
Peter Hutterer
peter.hutterer at who-t.net
Wed Oct 26 16:53:50 PDT 2011
main() calls it for us before we get here, no need to have it twice.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Changes to v1:
- drop "Centralise supported major/minor version", it's not needed after
this change
src/list.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/src/list.c b/src/list.c
index 64848e3..3be20eb 100644
--- a/src/list.c
+++ b/src/list.c
@@ -278,19 +278,10 @@ static int
list_xi2(Display *display,
enum print_format format)
{
- int major = 2,
- minor = 0;
int ndevices;
int i, j;
XIDeviceInfo *info, *dev;
- if (XIQueryVersion(display, &major, &minor) != Success ||
- (major * 1000 + minor) < 2000)
- {
- fprintf(stderr, "XI2 not supported.\n");
- return EXIT_FAILURE;
- }
-
info = XIQueryDevice(display, XIAllDevices, &ndevices);
for(i = 0; i < ndevices; i++)
--
1.7.7
More information about the xorg-devel
mailing list