]> Pileus Git - ~andy/gtk/commitdiff
gdkdnd-x11.c: fix building without HAVE_XCOMPOSITE
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Tue, 28 Dec 2010 03:20:11 +0000 (10:20 +0700)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 Jan 2011 04:40:00 +0000 (23:40 -0500)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
gdk/x11/gdkdnd-x11.c

index 313bb4fc8ac9c646904c372bf254fcfd8142d305..0cb66c518a05931a8b950268b598654548bf4981 100644 (file)
@@ -41,7 +41,9 @@
 #include <X11/Xutil.h>
 #include <X11/Xatom.h>
 #include <X11/extensions/shape.h>
+#ifdef HAVE_XCOMPOSITE
 #include <X11/extensions/Xcomposite.h>
+#endif
 
 #include <string.h>
 
@@ -498,7 +500,9 @@ gdk_window_cache_new (GdkScreen *screen)
   GdkWindow *root_window = gdk_screen_get_root_window (screen);
   GdkChildInfoX11 *children;
   guint nchildren, i;
+#ifdef HAVE_XCOMPOSITE
   Window cow;
+#endif
 
   GdkWindowCache *result = g_new (GdkWindowCache, 1);