I'm looking at a case where a handler for NSWindowDidBecomeMain
gets the NSWindow*
from the notification object and verifies that window.isVisible == YES
, window.windowNumber > 0
and window.screen != nil
. However, window.windowNumber
is missing from the array [NSWindow windowNumbersWithOptions: NSWindowNumberListAllSpaces]
and from CGWindowListCopyWindowInfo( kCGWindowListOptionOnScreenOnly, kCGNullWindowID )
, how can that be?
The window number is in the array returned by CGWindowListCopyWindowInfo( kCGWindowListOptionAll, kCGNullWindowID )
.
I'm seeing this issue in macOS 15, maybe 14, but not 13.