I want to monitor all the open windows under X11. Currently, I\'m doing this as follows:
Have a look at xwininfo.
xwininfo
You might also like xprop and xspy for getting more info.
xprop
xspy
Update: Yep. Try using xwininfo and -root with either -tree or -children to get all windows involved.
-root
-tree
-children
And changes can be tracked with xprop -spy.
xprop -spy