Search code examples
macosx11window-managers

Is there a way to enumerate the open windows on Mac and X11?


Basically, I am looking for something like Win32's EnumChildWindows on Mac and X11, which takes a handle to a window and returns a list of its child windows.


Solution

  • For X11, look at the xwininfo source to see how xwininfo -children works.