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

Closed
opened 2026-04-23 01:39:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: clawoss/fix/macos-space-affinity


📝 Commits (1)

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

📊 Changes

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

View changed files

📝 app/webview/webview.h (+14 -0)

📄 Description

When a macOS window enters fullscreen, it creates a Space affinity that persists after the window is closed. On next launch, the window reopens in that fullscreen Space instead of the currently active Space.

Set NSWindowCollectionBehaviorCanJoinAllSpaces on the webview window so it can appear on any Space, preventing the affinity from being retained.

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/15037 **Author:** [@BillionClaw](https://github.com/BillionClaw) **Created:** 3/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `clawoss/fix/macos-space-affinity` --- ### 📝 Commits (1) - [`3959ee0`](https://github.com/ollama/ollama/commit/3959ee060a1a76a4430f3ac837f0ed6d8eb1c5d9) fix(macos): prevent fullscreen Space affinity from persisting after close ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `app/webview/webview.h` (+14 -0) </details> ### 📄 Description When a macOS window enters fullscreen, it creates a Space affinity that persists after the window is closed. On next launch, the window reopens in that fullscreen Space instead of the currently active Space. Set NSWindowCollectionBehaviorCanJoinAllSpaces on the webview window so it can appear on any Space, preventing the affinity from being retained. 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-04-23 01:39:09 -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#40854