gdkdnd-x11.c: fix building without HAVE_XCOMPOSITE

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy 2010-12-28 10:20:11 +07:00 committed by Matthias Clasen
parent 98a30bbf3e
commit cf752786f3

View 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);