mirror of
https://github.com/brl/mutter.git
synced 2025-01-25 19:08:56 +00:00
gdk: Use X11 API only when running under X11
Avoid using GdkX11Screen API when the GDK backend being used is not the X11 one. https://bugzilla.gnome.org/show_bug.cgi?id=752143
This commit is contained in:
parent
41cd804f10
commit
365bd482fb
@ -534,6 +534,7 @@ clutter_gdk_get_visual (void)
|
||||
g_assert (screen != NULL);
|
||||
|
||||
#if defined(GDK_WINDOWING_X11) && defined(COGL_HAS_XLIB_SUPPORT)
|
||||
if (GDK_IS_X11_SCREEN (screen))
|
||||
{
|
||||
XVisualInfo *xvisinfo = cogl_clutter_winsys_xlib_get_visual_info ();
|
||||
if (xvisinfo != NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user