ITADN

Fix Arc browser windows becoming unmanaged after exiting fullscreen

#2635Pull Request0xAndoroid 创建于 2025-06-11
0
0xAndoroidcommented
## Fix Arc browser windows becoming unmanaged after exiting fullscreen Fixes #2576 ### Problem Arc browser windows become unmanaged after exiting fullscreen mode. The window incorrectly reports: - `is-native-fullscreen: true` (should be false) - `can-move: false` (should be true) This prevents yabai from re-managing the window after fullscreen exit. ### Root Cause Arc does not properly update its accessibility attributes when exiting fullscreen. The standard `WINDOW_RESIZED` event handler cannot detect the correct state because Arc continues to report incorrect values through the Accessibility API. ### Solution Added a workaround in the `SPACE_CHANGED` event handler that: 1. Detects Arc windows that have the fullscreen flag set but are on a user space (not fullscreen space) 2. Forces the window state to update by clearing the fullscreen flag and refreshing window attributes 3. Re-evaluates if the window should be managed and adds it back to tiling if needed The fix is specifically targeted to Arc browser to avoid unintended effects on other applications. ### Testing - macOS 15.5 with Arc browser - Confirmed windows are properly re-managed after exiting fullscreen - No impact on other applications ### Note As a note, it may be that such behavior is a bug in Arc browser, however given that it's not open source, fixing it there would mean going through the report a bug button, and no one reads those.
合并状态:未合并 关闭于 2025-09-17 2 条评论