From d20d041b109d5ef4ecd7f32910163fe8963f9f24 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 8 Dec 2015 14:18:49 +0000 Subject: 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/gdk/clutter-stage-gdk.c b/clutter/gdk/clutter-stage-gdk.c index 0620e4c13..7b3e0c38e 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); -- cgit v1.2.1