
Manual window occlusion detection relies on detecting when the window list order has changed. In macOS 14, it appears that window cycling (Cmd+`) no longer flows through -[NSWindow orderWindow:relativeTo], which was the override point used to detect those changes. This cl adds notifications for window main status changes in order to catch window cycling. Test: None - unfortunately, it doesn't appear to be possible to write an automated test to detect this breakage Bug: 1494236 Change-Id: I94e29ffab33dfba4a93e613efab36dd3c6f54088 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5017455 Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Commit-Queue: Jayson Adams <shrike@chromium.org> Reviewed-by: Leonard Grey <lgrey@chromium.org> Cr-Commit-Position: refs/heads/main@{#1223758}