From 71743ef660bc298da94c9a5963c40c3550ddc6b0 Mon Sep 17 00:00:00 2001 From: Dima Ryazanov Date: Fri, 29 May 2015 10:13:03 +0100 Subject: [PATCH] Fix a compile error when the X11 backend is disabled When defining clutter_stage_gdk_update_foreign_event_mask, check for the same macros as when actually using it. Signed-off-by: Dima Ryazanov Reviewed-by: Emmanuele Bassi --- 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 e855a985c..1c50208e5 100644 --- a/clutter/gdk/clutter-stage-gdk.c +++ b/clutter/gdk/clutter-stage-gdk.c @@ -70,7 +70,7 @@ G_DEFINE_TYPE_WITH_CODE (ClutterStageGdk, G_IMPLEMENT_INTERFACE (CLUTTER_TYPE_STAGE_WINDOW, clutter_stage_window_iface_init)); -#ifdef CLUTTER_WINDOWING_X11 +#if defined(GDK_WINDOWING_X11) && defined(COGL_HAS_XLIB_SUPPORT) static void clutter_stage_gdk_update_foreign_event_mask (CoglOnscreen *onscreen, guint32 event_mask,