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>
list_xi2(Display *display,
enum print_format format)
{
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 ||
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;
{
fprintf(stderr, "XI2 not supported.\n");
return EXIT_FAILURE;