[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 <dima gmail com>
---
 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 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,
-- 
2.4.2



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