diff options
author | Ray Strode <rstrode@redhat.com> | 2007-04-18 09:57:58 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2007-04-18 09:57:58 -0400 |
commit | 984354cce83e152dcef6b6cef0f5c80988563ec4 (patch) | |
tree | 23a3774e8460dc1b7e14719c47575e7389241ed7 /src/pop-demo.c | |
parent | fac22f053b37386dd13152f9063cde817a466aa8 (diff) |
Start to move code over to PopXReplyWatch instead of
gdk_error_trap_push/gdk_error_trap_pop
Diffstat (limited to 'src/pop-demo.c')
-rw-r--r-- | src/pop-demo.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/pop-demo.c b/src/pop-demo.c index 96f687e..c7fa5cb 100644 --- a/src/pop-demo.c +++ b/src/pop-demo.c @@ -96,6 +96,23 @@ remove_window_from_list (GdkWindow *window) g_object_unref (G_OBJECT (window)); } +static Status +query_tree_request (GdkDisplay *display, + gpointer data) +{ + GdkWindow *window; + Window parent, root, *children; + guint number_of_children, i; + gboolean tree_queried; + + window = GDK_WINDOW (data); + g_assert (GDK_IS_WINDOW (window)); + + return XQueryTree (GDK_DISPLAY_XDISPLAY (display), + GDK_WINDOW_XWINDOW (window), + &root, &parent, &children, &number_of_children); +} + static void add_window_to_list (GdkWindow *window) { |