Repository navigation
Carry seedds/nxnative#665: fullscreen for a game opened from a fullscreen app - #219
Merged
Merged
Conversation
v0lumehi
force-pushed
the
v0lumehi/fullscreen-after-space
branch
2 times, most recently
from
October 29, 2026 19:52
7cb66b4 to
a7a2dc5
Compare
3 tasks done
v0lumehi
force-pushed
the
v0lumehi/fullscreen-after-space
branch
from
October 29, 2026 19:55
a7a2dc5 to
8dc01ab
Compare
Collaborator
Author
|
Rebased onto main after #217. Patch renumbered to 0030-front-mac-enter-fullscreen-once-the-app-is-activ, |
2 tasks done
Owner
|
The host side of this is already validated on real hardware — see the data on seedds/nxnative#665 (a real game from console mode: 4/4 rolled back before, enters and holds with this code). #220 (the launcher half) has been trimmed to launcher-only so it does not collide with this: the forced |
… fullscreen once it is on the active Space Forwarded patch for dm/host/front_mac.m and its reference entry.
LNPANDY
force-pushed
the
v0lumehi/fullscreen-after-space
branch
from
October 29, 2026 20:13
8dc01ab to
94c2a9e
Compare
This was referenced Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
A Mac game started with
DM_FULLSCREEN=1from the launcher's console mode, which is itself in macOS fullscreen, comes up as a window. @LNPANDY found it while building fullscreen for console mode: "using a full screen app to launch another full-screen app will fail, it will automatically switch to windowed mode".The launcher lives in its own fullscreen Space, so opening the game makes macOS leave that Space. The game asked for fullscreen on the next run-loop turn, when its window was not yet on the active Space (a harness of two small apps logged
isOnActiveSpace0 there, the Space change arriving 0.3 to 0.5 s later), and AppKit can refuse a request made then. The fix waits until the app is active and the window is on the active Space, repeats a refused request once, and stops when the player toggles fullscreen themselves.g_fullscreenandscreen_match_applyare unchanged. Full reasoning, the alternative (a borderless window) and the reference entry are in the upstream PR: seedds/nxnative#665.This PR carries it as patch 0030 (
Upstream-Status: forwarded seedds/nxnative#665). ItsIssue:line names this PR, as there is no separate issue.@LNPANDY could you try it from console mode once it is in a build? The failure itself did not reproduce here (see below), so your confirmation is what counts.
Checked
python3 scripts/patches.py checkpasses,python3 -m unittest discover -s scripts/testspasses (39 tests),make -C dm/host GAME=010015100B514000builds,make -C dm/host/tests GAME=010015100B514000 runpasses. The patch applied cleanly onto current main.isOnActiveSpace0, so the refusal is not reproduced. With the change the request waited for the Space change and then entered fullscreen. The host itself was built, not run in a Space transition, and no game was started with it.Scope
patches/(patches.py checkpasses),Upstream-Status: forwarded seedds/nxnative#665