fix(preferences): open window over fullscreen apps instead of switchi…#931
Open
EthanBlazkowicz wants to merge 2 commits into
Open
fix(preferences): open window over fullscreen apps instead of switchi…#931EthanBlazkowicz wants to merge 2 commits into
EthanBlazkowicz wants to merge 2 commits into
Conversation
…ng to desktop Fixes the issue where opening the preferences window from the menu bar while in a fullscreen app would cause macOS to switch back to the desktop space. By changing the window's `collectionBehavior` to include `.fullScreenAuxiliary` and `.moveToActiveSpace`, and by removing the transition to a regular app (which showed the Dock icon), the application now correctly remains in "Accessory" mode and displays the preferences window directly over the current fullscreen app. Code written by Gemini. --- 修复了在全屏应用中通过菜单栏打开偏好设置时,macOS 会强制切换回桌面的问题。 通过修改窗口的 `collectionBehavior` 包含 `.fullScreenAuxiliary` 和 `.moveToActiveSpace`,同时移除了切换为常规应用(显示 Dock 图标)的逻辑,应用现在会正确保持在“辅助”模式,并直接在当前全屏应用上方显示偏好设置窗口。 代码由 Gemini 编写。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ng to desktop
Fixes the issue where opening the preferences window from the menu bar while in a fullscreen app would cause macOS to switch back to the desktop space.
By changing the window's
collectionBehaviorto include.fullScreenAuxiliaryand.moveToActiveSpace, and by removing the transition to a regular app (which showed the Dock icon), the application now correctly remains in "Accessory" mode and displays the preferences window directly over the current fullscreen app.Code written by Gemini.
修复了在全屏应用中通过菜单栏打开偏好设置时,macOS 会强制切换回桌面的问题。
通过修改窗口的
collectionBehavior包含.fullScreenAuxiliary和.moveToActiveSpace,同时移除了切换为常规应用(显示 Dock 图标)的逻辑,应用现在会正确保持在“辅助”模式,并直接在当前全屏应用上方显示偏好设置窗口。代码由 Gemini 编写。