mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-29 18:47:38 +00:00
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:
parent
f0632d5ced
commit
31d08bd85e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user