Switch full screen with F11 or Alt+Enter while the title runs #1
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1"
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?
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-26T08:34:56Z.
Full screen was fixed when the window was made. Now F11, or Alt+Enter, on the title's window switches between full screen (a frameless popup over the monitor the window is on) and the window it was made as, fitted to the screen. The swap chain stretches to either. DXGI's own Alt+Enter, which would switch the swap chain to exclusive full screen with buffers nothing resizes, is turned off with
MakeWindowAssociation.The README already describes the keys (How to run it).
Tested:
a_full_screen_window_is_a_frameless_popup_over_the_screen,full_screen_switches_both_ways_on_the_window_s_monitor.Not played live with this exact tree yet: the next measured session will check both keys.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T08:35:10Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
3981f713981f71ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T08:36:57Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
3981f716f3ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T08:36:58Z.
Code review location:
crates/victory-hle/src/modules/lifecycle.rs; line 170If the title creates another unowned, non-tool top-level window after its main window, this assignment overwrites
WINDOWEDwith that other window's styles and geometry, even if it is hidden or creation subsequently fails.window_procstill restricts toggling toTITLE_WINDOW, so switching the main window back to windowed mode applies the helper's dimensions and styles to it. Save the state per HWND after successful creation, or retain only the state belonging to the selected title window.Useful? React with 👍 / 👎.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T08:36:58Z.
Code review location:
crates/victory-hle/src/modules/lifecycle.rs; line 208For a title that passes
CW_USEDEFAULTtoCreateWindowEx,fitdeliberately preserves that sentinel, so the saved rectangle is not necessarily usable geometry. Returning from full screen later passes it directly toSetWindowPos, which does not interpretCW_USEDEFAULTas a default-placement request. Default coordinates can therefore move the window off-screen, and default dimensions can leave it incorrectly sized. Resolve the windowed rectangle to actual coordinates and positive dimensions before using it for restoration.Useful? React with 👍 / 👎.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T08:36:58Z.
Code review location:
crates/victory-hle/src/modules/lifecycle.rs; line 233Holding F11 or Alt+Enter beyond the keyboard repeat delay generates repeated key-down messages, and every one currently triggers another full-screen transition. The window consequently alternates modes until release, with the final mode depending on the repeat count. Check the previous-key-state bit in
lparamand toggle only on the initial key-down.Useful? React with 👍 / 👎.
Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T08:36:58Z.
Code review location:
crates/victory-gpu/src/host.rs; line 9308When
presenter()finds no title-created window, it callswindow(width, height)to create the GPU fallback window. That window is created directly through Win32 inmake_window(), and itswindow_proc()only callsDefWindowProcW; it never receives the lifecycle module's new shortcut handler. Disabling DXGI's Alt+Enter unconditionally therefore removes the fallback window's existing full-screen shortcut without providing a replacement. Add the borderless toggle handler to this window too, or restrict this association change to windows with the replacement handler.Useful? React with 👍 / 👎.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T01:33:54Z.
I opened #104 to address the four findings above. Window placement now belongs to the window that created it, the restore path resolves default coordinates before calling
SetWindowPos, and held F11 or Alt+Enter only toggles once. The fallback window keeps DXGI's Alt+Enter. The draft includes regression tests and is waiting for CI and an in-game toggle check.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:11:24Z.
Code review location:
crates/victory-hle/src/modules/lifecycle.rs; line 170The current local lifecycle implementation stores window state per HWND in WINDOWS and removes it on WM_NCDESTROY. The selected title window looks up its own state, so a helper window no longer overwrites it. Native fullscreen testing remains separate.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:11:26Z.
Code review location:
crates/victory-hle/src/modules/lifecycle.rs; line 208The current local lifecycle path resolves CW_USEDEFAULT into monitor-relative coordinates and positive dimensions for restoration. The regression coverage includes a monitor with negative coordinates.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:11:27Z.
Code review location:
crates/victory-hle/src/modules/lifecycle.rs; line 233The current switches_full_screen predicate checks bit 30 of lparam and ignores repeated key-down messages. The repeat case is covered by a regression test in lifecycle.rs.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:11:29Z.
Code review location:
crates/victory-gpu/src/host.rs; line 9308The current local presenter only disables DXGI Alt+Enter when a title window exists. The fallback window retains DXGI's shortcut rather than losing it unconditionally.