[PR #15034] [CLOSED] fix(macos): prevent fullscreen Space affinity from persisting after close #77272

Closed
opened 2026-05-05 09:56:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15034
Author: @BillionClaw
Created: 3/24/2026
Status: Closed

Base: mainHead: clawoss/fix/15002-window-space-affinity


📝 Commits (1)

  • be950f0 fix(macos): prevent fullscreen Space affinity from persisting after close

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 app/cmd/app/app_darwin.m (+6 -0)

📄 Description

When the Ollama window is closed while in a fullscreen Space, macOS remembers that Space affinity and re-opens the window in that Space instead of the currently active Space.

Root cause: The window's collectionBehavior was never set, so macOS assigned it fullscreen Space affinity by default. When the window was closed and reopened, macOS tried to restore it to that Space.

Fix: Set NSWindowCollectionBehaviorFullScreenAuxiliary on the window in styleWindow() in app_darwin.m. Auxiliary fullscreen windows are not automatically moved to a fullscreen Space. Also include NSWindowCollectionBehaviorTransient to prevent persistence in Spaces preferences.

Fixes #15002


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/15034 **Author:** [@BillionClaw](https://github.com/BillionClaw) **Created:** 3/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `clawoss/fix/15002-window-space-affinity` --- ### 📝 Commits (1) - [`be950f0`](https://github.com/ollama/ollama/commit/be950f0c398319954cf872892dab2aeaa42b7434) fix(macos): prevent fullscreen Space affinity from persisting after close ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `app/cmd/app/app_darwin.m` (+6 -0) </details> ### 📄 Description When the Ollama window is closed while in a fullscreen Space, macOS remembers that Space affinity and re-opens the window in that Space instead of the currently active Space. **Root cause:** The window's `collectionBehavior` was never set, so macOS assigned it fullscreen Space affinity by default. When the window was closed and reopened, macOS tried to restore it to that Space. **Fix:** Set `NSWindowCollectionBehaviorFullScreenAuxiliary` on the window in `styleWindow()` in `app_darwin.m`. Auxiliary fullscreen windows are not automatically moved to a fullscreen Space. Also include `NSWindowCollectionBehaviorTransient` to prevent persistence in Spaces preferences. Fixes #15002 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 09:56:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#77272