diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-05-15 10:23:14 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-05-15 11:08:35 +0200 |
commit | 8306d26714514f001d49b1cefc182459a44d9724 (patch) | |
tree | d962c692e453a0dba07d3c8058bb289effeadb84 /gdk/win32 | |
parent | 3a414e0acef4ca466d56d224eb1df24a24486f91 (diff) | |
download | gtk+-8306d26714514f001d49b1cefc182459a44d9724.tar.gz |
GdkWindow: Track all native windows of native windows
We keep a list of all native children of a native window. This means
we don't have to recurse over the entire hierarchy to find any
native children.
Diffstat (limited to 'gdk/win32')
-rw-r--r-- | gdk/win32/gdkwindow-win32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index 4ec80c1eea..29714b5264 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -714,6 +714,8 @@ gdk_win32_window_foreign_new_for_display (GdkDisplay *display, window->parent = _gdk_root; window->parent->children = g_list_prepend (window->parent->children, window); + window->parent->impl_window->native_children = + g_list_prepend (window->parent->impl_window->native_children, window); GetClientRect ((HWND) anid, &rect); point.x = rect.left; |