diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-10-27 09:46:27 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-10-27 09:49:12 +1000 |
commit | c95ba34858f3fd7db284a11a2f00cf77990e4f9e (patch) | |
tree | 4936066102df58abc6a575da4bbc5f28f4381b7e | |
parent | 960ed57f624e200467d5b7801da0d11337d8eba4 (diff) |
list: drop XIQueryVersion call
main() calls it for us before we get here, no need to have it twice.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Julien Cristau <jcristau@debian.org>
-rw-r--r-- | src/list.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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++) |