[clutter] Fix a compile error when the X11 backend is disabled



commit 71743ef660bc298da94c9a5963c40c3550ddc6b0
Author: Dima Ryazanov <dima gmail com>
Date:   Fri May 29 10:13:03 2015 +0100

    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 <dima gmail com>
    Reviewed-by: Emmanuele Bassi <ebassi gnome org>

 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 e855a98..1c50208 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,


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