[gtk+/gtk-2-22] gdk: Only use XComposite if it is available
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] gdk: Only use XComposite if it is available
- Date: Wed, 15 Sep 2010 14:43:07 +0000 (UTC)
commit 285ab04c0c8f5a647564c9a2dcac7f08e47e423b
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date: Wed Sep 15 16:41:41 2010 +0200
gdk: Only use XComposite if it is available
Fixes build if it isn't available. Bug #629748.
gdk/x11/gdkdnd-x11.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index cae510d..266bf26 100644
--- a/gdk/x11/gdkdnd-x11.c
+++ b/gdk/x11/gdkdnd-x11.c
@@ -570,6 +570,7 @@ gdk_window_cache_new (GdkScreen *screen)
g_free (children);
+#ifdef HAVE_XCOMPOSITE
/*
* Add the composite overlay window to the cache, as this can be a reasonable
* Xdnd proxy as well.
@@ -583,6 +584,7 @@ gdk_window_cache_new (GdkScreen *screen)
gdk_window_cache_add (result, cow, 0, 0, gdk_screen_get_width (screen), gdk_screen_get_height (screen), TRUE);
XCompositeReleaseOverlayWindow (xdisplay, GDK_WINDOW_XWINDOW (root_window));
}
+#endif
return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]