| author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-08-12 04:20:21 (GMT) |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-08-12 04:43:53 (GMT) |
| commit | 4be60c90008ac48e72e819e078ce957fd003a509 (patch) (side-by-side diff) | |
| tree | 33a38a0c803e25d54c81f14ad5563ca80d3b3215 | |
| parent | 8563e64fa4eeaf7b56374fd6695f026d98f1696d (diff) | |
| download | xinput-4be60c90008ac48e72e819e078ce957fd003a509.zip xinput-4be60c90008ac48e72e819e078ce957fd003a509.tar.gz | |
list: don't use defines for checking server version.
Otherwise we run into the old problem again: recompiling xinput against
newer inputproto headers will appear to change the version support,
potentially causing errors or other misbehaviours.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
| -rw-r--r-- | src/list.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -248,14 +248,14 @@ static int list_xi2(Display *display, enum print_format format) { - int major = XI_2_Major, - minor = XI_2_Minor; + int major = 2, + minor = 0; int ndevices; int i, j; XIDeviceInfo *info, *dev; if (XIQueryVersion(display, &major, &minor) != Success || - (major * 1000 + minor) < (XI_2_Major * 1000 + XI_2_Minor)) + (major * 1000 + minor) < 2000) { fprintf(stderr, "XI2 not supported.\n"); return EXIT_FAILURE; |
