I'd like to be able to grab a list of all windows that are open on a Linux desktop from a Python script. I suppose this would require working through Xlib or some other x11 or xdisplay library. This would be the Linux equivalent on win32's EnumWindows API call.
Ideally, I'd like to be able to use this to get a list of the title/caption text of every open window along with position/size information.
Is there some function call from Python that will return this info?