summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-11-15 00:38:29 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-11-15 00:38:29 +0000
commit0619940a7fe8ad47819e5fac04262a813816c2d1 (patch)
treeefb4cf2eaac94c8807b19ae08849f08cb6dbd8e5
parentb01062ec911053778cdb48f926238f748178d7c8 (diff)
downloadgdk-pixbuf-0619940a7fe8ad47819e5fac04262a813816c2d1.tar.gz
Bug 552956 – Should check composite extension version
* gdk/x11/gdkdisplay-x11.c: Check that the version of the composite extension is at least 0.4. Patch by Owen Taylor svn path=/branches/gtk-2-14/; revision=21790
-rw-r--r--ChangeLog10
-rw-r--r--gdk/x11/gdkdisplay-x11.c12
2 files changed, 21 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 13f5d471f..6201243f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,16 @@
Merged from trunk:
+ Bug 552956 – Should check composite extension version
+
+ * gdk/x11/gdkdisplay-x11.c: Check that the version of the
+ composite extension is at least 0.4.
+ Patch by Owen Taylor
+
+2008-11-14 Matthias Clasen <mclasen@redhat.com>
+
+ Merged from trunk:
+
Bug 541391 – Unfocussable Treeview swallows focus
* gtk/gtktreeview.c (grab_focus_and_unset_draw_keyfocus),
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index 08b77da0e..f181d04e6 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -236,7 +236,17 @@ gdk_display_open (const gchar *display_name)
#ifdef HAVE_XCOMPOSITE
if (XCompositeQueryExtension (display_x11->xdisplay,
&ignore, &ignore))
- display_x11->have_xcomposite = TRUE;
+ {
+ int major, minor;
+
+ XCompositeQueryVersion (display_x11->xdisplay, &major, &minor);
+
+ /* Prior to Composite version 0.4, composited windows clipped their
+ * parents, so you had to use IncludeInferiors to draw to the parent
+ * This isn't useful for our purposes, so require 0.4
+ */
+ display_x11->have_xcomposite = major > 0 || (major == 0 && minor >= 4);
+ }
else
#endif
display_x11->have_xcomposite = FALSE;