When wrapping a foreign W32 window, don't forget to store its HWND

When that window is later used as a parent for a GDK child, the call to
CreateWindow*() will fail, because its HWND is 0.

https://bugzilla.gnome.org/show_bug.cgi?id=733768
This commit is contained in:
Руслан Ижбулатов 2014-07-25 23:12:24 +00:00
parent f0632d5ced
commit 31d08bd85e

View File

@ -742,6 +742,7 @@ gdk_win32_window_foreign_new_for_display (GdkDisplay *display,
window->viewable = TRUE;
window->depth = gdk_visual_get_system ()->depth;
GDK_WINDOW_HWND (window) = anid;
g_object_ref (window);
gdk_win32_handle_table_insert (&GDK_WINDOW_HWND (window), window);