|| defined (HAVE_HAIKU)
return list2 (Qscale, Qrotate90);
# elif defined (HAVE_X_WINDOWS) && defined (HAVE_XRENDER)
- int event_basep, error_basep;
-
if (FRAME_DISPLAY_INFO (f)->xrender_supported_p)
return list2 (Qscale, Qrotate90);
# elif defined (HAVE_NTGUI)
x_probe_xfixes_extension (Display *dpy)
{
#ifdef HAVE_XFIXES
- int major, minor;
- return XFixesQueryVersion (dpy, &major, &minor) && major >= 4;
+ struct x_display_info *info
+ = x_display_info_for_display (dpy);
+
+ return (info
+ && info->xfixes_supported_p
+ && info->xfixes_major >= 4);
#else
return false;
#endif /* HAVE_XFIXES */
}
#endif
+#ifdef HAVE_XFIXES
+ int xfixes_event_base, xfixes_error_base;
+ dpyinfo->xfixes_supported_p
+ = XFixesQueryExtension (dpyinfo->display, &xfixes_event_base,
+ &xfixes_error_base);
+
+ if (dpyinfo->xfixes_supported_p)
+ {
+ if (!XFixesQueryVersion (dpyinfo->display, &dpyinfo->xfixes_major,
+ &dpyinfo->xfixes_minor))
+ dpyinfo->xfixes_supported_p = false;
+ }
+#endif
+
#if defined USE_CAIRO || defined HAVE_XFT
{
/* If we are using Xft, the following precautions should be made: