isOnActiveSpace

fun isOnActiveSpace(awtWindow: <Error class: unknown class>): Boolean

Check if an AWT window is currently on the active macOS Space. Returns true if on the active Space, false if on another Space. Returns true by default if the check cannot be performed (fail-open).