[gtk+/gtk-2-18] Ensure native windows in gdk_property_change
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-18] Ensure native windows in gdk_property_change
- Date: Fri, 18 Dec 2009 23:47:57 +0000 (UTC)
commit d97a72a22b92298a8072938a7ddc0621ba501f19
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 18 18:43:32 2009 -0500
Ensure native windows in gdk_property_change
Using X properties on non-toplevel windows is somewhat exotic,
but some people seem to do it, so better to keep it working.
See bug 604787.
(cherry picked from commit 7a9a3077e4064ca284ec53e5c4d223f278f57781)
gdk/x11/gdkproperty-x11.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkproperty-x11.c b/gdk/x11/gdkproperty-x11.c
index b0ce21b..1cf54f9 100644
--- a/gdk/x11/gdkproperty-x11.c
+++ b/gdk/x11/gdkproperty-x11.c
@@ -701,8 +701,9 @@ gdk_property_change (GdkWindow *window,
if (GDK_WINDOW_DESTROYED (window))
return;
+ gdk_window_ensure_native (window);
+
display = gdk_drawable_get_display (window);
-
xproperty = gdk_x11_atom_to_xatom_for_display (display, property);
xtype = gdk_x11_atom_to_xatom_for_display (display, type);
xwindow = GDK_WINDOW_XID (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]