Repository navigation
Console mode starts games fullscreen, and the pointer hides when idle - #280
Merged
Merged
Conversation
A game opened from an app in its own full screen Space can come up as a window, and a game that was built before the host waited for the Space change always does. Play now takes the launcher window out of full screen, opens the game, and puts the window back after the game has quit. Issue: #272
The Mac host never hid the pointer, so it stayed on the picture of a game in a window and in fullscreen. It now hides after DM_CURSOR_HIDE seconds (3 by default) without movement over the game view and shows again on the next movement, click or scroll.
This was referenced Oct 30, 2026
lucaszhongsj
pushed a commit
to lucaszhongsj/nxnative
that referenced
this pull request
Nov 19, 2026
Upstream-Status: fork-only (declined seedds#755, seedds#839) Reason: Hide the mouse cursor over a running Mac game after idle timeout and when launched with the cursor hidden Issue: LNPANDY/NX2Apple#280
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.
Fix or feature
What and why
Fixes #272.
The game opened as a window when Play was pressed in console mode. The launcher is in its own full screen Space there. Opening the game makes macOS leave that Space, and the game's request for fullscreen can be refused during the change. Patch 0030 makes the host wait for the Space change, but a game built before it always comes up as a window.
Play in console mode now takes the launcher window out of full screen first and then opens the game. This is the same path as Play from the desktop view, which already works. When the game quits, the window goes back to full screen. If the launcher is not the active app then, it waits until it is.
The pointer never hid over a game, in a window or in fullscreen. The host never asked macOS to hide it. Patch 0032 hides it after
DM_CURSOR_HIDEseconds without movement over the game (3 by default,0keeps it) and shows it again on the next movement, click or scroll. It is shown whenever the window is not key or the pointer is outside the game view.The pointer part is in the game host, so a game has to be rebuilt to get it.
Checked
cd frontend && swift testpasses (502 tests, 15 skipped). New tests cover the window leaving and returning to full screen, and the driver waiting for that before it opens the game.python3 scripts/patches.py checkanddm/tools/tests/test_docs.pypass.front_mac.mcompiles withclang -fsyntax-only.Screenshots
None. The change has no new view.
Scope
dm/,scripts/,docs/,ref/,AGENTS.md) is edited directly: a change there is a patch inpatches/(scripts/patches.py export, andpatches.py checkpasses), with itsUpstream-StatusUpstream-Status: pending. The same change still has to be sent to seedds/nxnative.