summaryrefslogtreecommitdiff
path: root/gdk/win32
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-05-15 10:23:14 +0200
committerAlexander Larsson <alexl@redhat.com>2013-05-15 11:08:35 +0200
commit8306d26714514f001d49b1cefc182459a44d9724 (patch)
treed962c692e453a0dba07d3c8058bb289effeadb84 /gdk/win32
parent3a414e0acef4ca466d56d224eb1df24a24486f91 (diff)
downloadgtk+-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.c2
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;