Is there a function like `xwininfo -tree`?
I wanted to write a program like spy++ under Linux, but I found that root window was invalid when I used gdk_get_default_root_window and then called gdk_window_get_children . And other functions, such as gdk_display_get_window_at_pointer and gdk_device_get_window_at_position also not work on another application I want to know if there is a method to directly obtain the internal structure of any GTK program without using hook.