Window: VICTORY_WINDOW_BACKGROUND=1 opens the window without the foreground, behind others, past the desktop's right edge #1136
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1139"
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 fxceless/victory-fork. Originally posted by exotiquee on 2026-11-25T21:23:13Z.
Branch:
pr/window-background(1 commit onmain085ee7c)What it does
For unattended runs on a PC someone is working at. With the switch, the title's top-level window (and the layer's own window, when it makes one) is created without
WS_VISIBLE, then shown at the bottom of the z order, just right of the virtual desktop, without activation. It still renders and presents, and scripted keys work without focus.Files:
crates/victory-hle/src/modules/lifecycle.rs(the title'sCreateWindowExW/A),crates/victory-gpu/src/host.rs(make_window).Switch
VICTORY_WINDOW_BACKGROUND=1. Off by default. Without it nothing changes.Tests
No new test: it only changes window placement.
cargo +1.98.1 test --locked -j 4 -p victory-gpu -p victory-hle, with and without--features victory-gpu/diagnostics: victory-gpu 183 passed (200 with diagnostics), victory-hle 100 passed.modules::xmem::tests::a_read_in_place_never_meets_the_gap_of_a_remappingfailing (the reader thread made 0 reads while the machine was loaded). The test passed 3 of 3 times when run alone. It is a timing test in code this PR does not touch.main.What we measured (RTX 5080, Ryzen 7 9800X3D)
Frame-rate effect not measured; none is expected. Three caveats for anyone timing with it:
PrintWindowscreenshots of the hidden window come back blank. Use the layer's own frame capture instead.Risks
Small. Only the top-level window's creation style and position change, and only with the switch on. Child windows are left alone.
🤖 Generated with Claude Code
Pull request closed