[PR #338] [MERGED] CtrlCore: Fix problem with ghost windows in mission control. #326

Closed
opened 2026-05-05 03:45:50 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ultimatepp/ultimatepp/pull/338
Author: @klugier
Created: 1/2/2026
Status: Merged
Merged: 1/9/2026
Merged by: @mirek-fidler

Base: masterHead: klugier/fix-issue-with-ghost-windows-on-mac


📝 Commits (1)

  • b3fc817 CtrlCore: Fix problem with ghost windows in mission control.

📊 Changes

1 file changed (+9 additions, -2 deletions)

View changed files

📝 uppsrc/CtrlCore/CocoWin.mm (+9 -2)

📄 Description

In this case the main fix is

[window setCollectionBehavior:NSWindowCollectionBehaviorTransient];

In this case when deleteing the window we are instrucing macos display server to hide this window in mission control. This is the simplest solution I found and looks like work in all cases that are present in TheIDE. I didn't notice any drawbacks.

https://developer.apple.com/documentation/appkit/nswindow/collectionbehavior-swift.struct/transient


🔄 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/ultimatepp/ultimatepp/pull/338 **Author:** [@klugier](https://github.com/klugier) **Created:** 1/2/2026 **Status:** ✅ Merged **Merged:** 1/9/2026 **Merged by:** [@mirek-fidler](https://github.com/mirek-fidler) **Base:** `master` ← **Head:** `klugier/fix-issue-with-ghost-windows-on-mac` --- ### 📝 Commits (1) - [`b3fc817`](https://github.com/ultimatepp/ultimatepp/commit/b3fc81752233a526a9aff26cffa528b29e631b50) CtrlCore: Fix problem with ghost windows in mission control. ### 📊 Changes **1 file changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `uppsrc/CtrlCore/CocoWin.mm` (+9 -2) </details> ### 📄 Description In this case the main fix is ``` [window setCollectionBehavior:NSWindowCollectionBehaviorTransient]; ``` In this case when deleteing the window we are instrucing macos display server to hide this window in mission control. This is the simplest solution I found and looks like work in all cases that are present in TheIDE. I didn't notice any drawbacks. https://developer.apple.com/documentation/appkit/nswindow/collectionbehavior-swift.struct/transient --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:45:50 -06:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#326
No description provided.