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>
This commit is contained in:
Dima Ryazanov 2015-05-29 10:13:03 +01:00 committed by Emmanuele Bassi
parent fbe2c74e19
commit 71743ef660

View File

@ -70,7 +70,7 @@ G_DEFINE_TYPE_WITH_CODE (ClutterStageGdk,
G_IMPLEMENT_INTERFACE (CLUTTER_TYPE_STAGE_WINDOW, G_IMPLEMENT_INTERFACE (CLUTTER_TYPE_STAGE_WINDOW,
clutter_stage_window_iface_init)); clutter_stage_window_iface_init));
#ifdef CLUTTER_WINDOWING_X11 #if defined(GDK_WINDOWING_X11) && defined(COGL_HAS_XLIB_SUPPORT)
static void static void
clutter_stage_gdk_update_foreign_event_mask (CoglOnscreen *onscreen, clutter_stage_gdk_update_foreign_event_mask (CoglOnscreen *onscreen,
guint32 event_mask, guint32 event_mask,