Skip to content

fix(preferences): open window over fullscreen apps instead of switchi…#931

Open
EthanBlazkowicz wants to merge 2 commits into
Caldis:masterfrom
EthanBlazkowicz:fix/preferences-fullscreen-space
Open

fix(preferences): open window over fullscreen apps instead of switchi…#931
EthanBlazkowicz wants to merge 2 commits into
Caldis:masterfrom
EthanBlazkowicz:fix/preferences-fullscreen-space

Conversation

@EthanBlazkowicz
Copy link
Copy Markdown

…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 编写。

Ethan Blazkowicz and others added 2 commits April 25, 2026 23:34
…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 编写。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant