mirror of
https://github.com/PlayCover/PlayCover.git
synced 2026-04-26 00:05:52 +03:00
Labels
No labels
UI
app-support
bug
bug
documentation
duplicate
enhancement
game-support
good first issue
help wanted / caution
inactive
invalid
macos-beta
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PlayCover#1630
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/PlayCover/PlayCover/pull/469
Author: @jslegendre
Created: 10/31/2022
Status: ✅ Merged
Merged: 10/31/2022
Merged by: @JoseMoreville
Base:
develop← Head:invisible-windows-fix📝 Commits (1)
3426ee5Fix #397📊 Changes
1 file changed (+0 additions, -2 deletions)
View changed files
📝
PlayCover/Model/AppInfo.swift(+0 -2)📄 Description
Do not add
UISupportsTrueScreenSizeOnMacto apps.Per Apple documentation, this key tells macOS the app is (among other things) capable of handling any display size and "all conceivable aspect ratios", which is obviously something we can't presume. I can image this would (if the window was visible) cause other bugs to pop up around UI and input mapping.
Finally, the actual reason windows aren't visible is actually pretty simple. The root application delegate class for iOS on Mac apps (
UINSApplicationDelegate) receives adidCreateUIScenecallback (or notification, didn't look much further into it) ondidCreateUIScene:transitionContextDictionary:which falls through to_configureWindowControllerCreatingIfNeededForScene:transitionContextDictionary:, where the main window controller is created. The root class for iOS on Mac (and Catalyst) window controllers isUINSSceneWindowControllerwhich has a method called_showWindowPostLoadIsFirstWindow:transitionContextDictionary:(invoked during_configureWindowController...) which checks for theUISupportsTrueScreenSizeOnMackey and SKIPS calling[NSWindow makeKeyAndOrderFront:]if found.tl;dr: Window controller never calls
[NSWindow makeKeyAndOrderFront:]ifUISupportsTrueScreenSizeOnMacis true.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.