This includes windows in native fullscreen and on other Spaces, with one limitation: macOS
only reveals a window on a Space that isn't visible if its app has already handed that
window to an accessibility client, e.g. because Hammerspoon listed it while its Space was
visible. A window that no accessibility client has looked at since it was created is
missing until its Space is next visible, unless it's its app's main or focused window,
which are always included.
Get all windows from all applications
This includes windows in native fullscreen and on other Spaces, with one limitation: macOS only reveals a window on a Space that isn't visible if its app has already handed that window to an accessibility client, e.g. because Hammerspoon listed it while its Space was visible. A window that no accessibility client has looked at since it was created is missing until its Space is next visible, unless it's its app's main or focused window, which are always included.