mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 03:40:10 +00:00
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.
This commit is contained in:
parent
600ae2db92
commit
214d5efdd4
@ -701,8 +701,9 @@ gdk_property_change (GdkWindow *window,
|
|||||||
if (GDK_WINDOW_DESTROYED (window))
|
if (GDK_WINDOW_DESTROYED (window))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
display = gdk_drawable_get_display (window);
|
gdk_window_ensure_native (window);
|
||||||
|
|
||||||
|
display = gdk_drawable_get_display (window);
|
||||||
xproperty = gdk_x11_atom_to_xatom_for_display (display, property);
|
xproperty = gdk_x11_atom_to_xatom_for_display (display, property);
|
||||||
xtype = gdk_x11_atom_to_xatom_for_display (display, type);
|
xtype = gdk_x11_atom_to_xatom_for_display (display, type);
|
||||||
xwindow = GDK_WINDOW_XID (window);
|
xwindow = GDK_WINDOW_XID (window);
|
||||||
|
Loading…
Reference in New Issue
Block a user