GNOME Bugzilla – Bug 736269
GTK crashes when gdk_window_get_root_coords() is called on a foreign window
Last modified: 2014-09-08 15:56:44 UTC
This happens because gdk_window_get_root_coords() calls: > impl_class->get_root_coords (window->impl_window, ... and window->impl_window is NULL
Created attachment 285653 [details] [review] Initialize impl_window for foreign W32 windows
Created attachment 285654 [details] A testcase
Review of attachment 285653 [details] [review]: See the comment ::: gdk/win32/gdkwindow-win32.c @@ +718,3 @@ g_list_prepend (window->parent->impl_window->native_children, window); + window->impl_window = g_object_ref (window->parent->impl_window); what about window->impl_window = window ? for what I can see on x11 is what it is doing...
That fixes the crash too.
Created attachment 285655 [details] [review] Initialize impl_window for foreign W32 windows v2: Use foreign window's own impl, not its parent's
Attachment 285655 [details] pushed as a8915b8 - Initialize impl_window for foreign W32 windows