[clutter/clutter-1.24] gdk: Check that both GDK and Cogl have Wayland support



commit d20d041b109d5ef4ecd7f32910163fe8963f9f24
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Dec 8 14:18:49 2015 +0000

    gdk: Check that both GDK and Cogl have Wayland support
    
    Otherwise the build will fail when Cogl is compiled without Wayland
    winsys.

 clutter/gdk/clutter-stage-gdk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/gdk/clutter-stage-gdk.c b/clutter/gdk/clutter-stage-gdk.c
index 0620e4c..7b3e0c3 100644
--- a/clutter/gdk/clutter-stage-gdk.c
+++ b/clutter/gdk/clutter-stage-gdk.c
@@ -164,7 +164,7 @@ clutter_stage_gdk_resize (ClutterStageWindow *stage_window,
    */
   if (!stage_gdk->foreign_window)
     gdk_window_resize (stage_gdk->window, width, height);
-#if defined(GDK_WINDOWING_WAYLAND)
+#if defined(GDK_WINDOWING_WAYLAND) && defined(COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT)
   else if (GDK_IS_WAYLAND_WINDOW (stage_gdk->window))
     cogl_wayland_onscreen_resize (CLUTTER_STAGE_COGL (stage_gdk)->onscreen,
                                   width, height, 0, 0);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]