Place default-sized windows whose height is 0 #201
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!201
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-201"
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?
@Geckomacabre on GitHub · 2026-11-27 09:06 UTC · original
Geckomacabre:pr/default-size-window→main· +42 −1 · 1 files · 2 commits · merged 2026-11-27 09:17 UTCFollow-up to #148 (from #125), for the Codex P2 finding on
lifecycle.rs:167: a window created with aCW_USEDEFAULTwidth and a height of 0 was treated as a zero-sized helper.Win32 ignores the height when the width is
CW_USEDEFAULT, soheight = 0there is a normal default-sized window. The guard inplace()returned before resolving that default, which skipped theVICTORY_MONITORplacement andVICTORY_FULLSCREEN, and left the window without aWindowState, so F11 and Alt+Enter did nothing for it.zero_sized(width, height): a width ofCW_USEDEFAULTis never zero-sized; any other width or height of 0 still is, so hidden helpers keep the geometry they asked for.a_default_width_with_zero_height_is_not_a_zero_sized_helper(the helper predicate both ways, andplace()keeping the window's full-screen state for a default-width, zero-height request).Checks (Windows 11, RTX 4090, toolchain 1.98.1):
cargo test -p victory-hle --lib -- --test-threads=1 lifecycle: 18 passed, 0 failed.cargo clippy -p victory-hle --tests -- -D warnings: clean.From the Geckomacabre/vx-layer work.
🤖 Generated with Claude Code
@TaynanGT on GitHub · 2026-11-27 09:12 UTC · original
@Geckomacabre The default-width case is right for overlapped windows. Win32 gives a pop-up zero size for the same value, and
placeable()accepts unowned pop-ups. I added a follow-up commit that keeps zero-sized helpers out of monitor placement and covers both window styles in the placement tests. CreateWindowExW parameters