summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2011-08-24 19:39:39 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2011-08-24 23:59:53 +0800
commita4049deb8fdb43e45c45efbca18e7e26c8c559b0 (patch)
treed32bce21a50b1b14c91a36e31342b21405825fee
parent8c919951c590ebcc70273aa53a3c316defe8a340 (diff)
downloadclutter-gtk-a4049deb8fdb43e45c45efbca18e7e26c8c559b0.tar.gz
Fix gtk-clutter-embed.c on non-X11 systems
The XEvent type/struct is something from the X11 libraries, which is most probably not available on systems that do not run X11. Move the #ifdef HAVE_CLUTTER_GTK_X11 line forward to guard the XEvent line.
-rw-r--r--clutter-gtk/gtk-clutter-embed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter-gtk/gtk-clutter-embed.c b/clutter-gtk/gtk-clutter-embed.c
index 27b68ee..9977ed7 100644
--- a/clutter-gtk/gtk-clutter-embed.c
+++ b/clutter-gtk/gtk-clutter-embed.c
@@ -183,9 +183,9 @@ gtk_clutter_filter_func (GdkXEvent *native_event,
GdkEvent *event G_GNUC_UNUSED,
gpointer user_data G_GNUC_UNUSED)
{
+#ifdef HAVE_CLUTTER_GTK_X11
XEvent *xevent = native_event;
-#ifdef HAVE_CLUTTER_GTK_X11
/* let Clutter handle all events coming from the windowing system */
clutter_x11_handle_event (xevent);
#endif