request results in an error. If that doesn't work, however,
then it's the latter, so decrease the minor until the version
that GTK requested is found. */
- x_catch_errors (dpyinfo->display);
#endif
+ x_catch_errors (dpyinfo->display);
+
rc = XIQueryVersion (dpyinfo->display, &major, &minor);
#ifdef HAVE_GTK3
}
else
x_uncatch_errors_after_check ();
+#else
+ if (x_had_errors_p (dpyinfo->display))
+ rc = BadRequest;
+
+ x_uncatch_errors_after_check ();
#endif
if (rc == Success)
x_init_master_valuators (dpyinfo);
}
}
+
dpyinfo->xi2_version = minor;
#endif