Skip to content

README: document XCL_WINDOW_POS - #3557

Draft
romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/window-pos-readme-19
Draft

romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/window-pos-readme-19

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

Documents XCL_WINDOW_POS, which the README did not mention. README-only change. No issue.

What is in it

  • README.md: one new bullet under "Switches for how a title runs", after the XCL_WAIT_TIMEOUT_MS / XCL_GPU_WAIT_TIMEOUT_MS bullet, stating that XCL_WINDOW_POS overrides the window_pos setting for where the title window opens: auto (the default) lets Windows place it, center centers it on the primary monitor's work area, x,y puts its top-left corner there clamped into the nearest monitor's work area, and anything else logs a warning and falls back to auto.

Tested

  • Verified against crates/xcl/src/hle/d3d12x/present.rs at main d0832e6: window_position() reads XCL_WINDOW_POS first and falls back to the window_pos setting (default "auto" in crates/xcl/src/config.rs); empty or auto returns CW_USEDEFAULT, center centers on the primary monitor's work area, x,y is clamped into the nearest monitor's work area, and an unparsable value logs a warning and uses auto. Confirmed the variable had no mention in README.md at that commit and searched open and closed PRs and issues for a duplicate; none found.

Regression run
main: n/a (docs-only)
PR: n/a (docs-only)

Not tested

  • No local build or test run; README-only change. Windows build, cargo test --workspace, the GPU suite, and any retail title were not run.

AI use

  • AI-assisted (Muse Spark): read the code, checked for duplicate PRs, and prepared this docs change. No test results were produced by the tool.

@github-actions github-actions Bot added the area:docs-ci Documentation, scripts, workflows, repo governance label Dec 1, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Review (head 42dd7f2, diff read, not a merge-check; draft, docs only):

  • The new bullet (README line 360) starts with - at column 0, which puts it outside the "Switches for how a title runs" list rather than inside it as the description says; indent it as - with 4-space continuation lines.
  • "the window_pos setting" could say it's a key in the title's xcl.toml (the README doesn't mention it anywhere else).
  • Note: open PR D3D12.X: DPI-aware XCL window, borderless fullscreen and a monitor choice #734 changes how XCL_WINDOW_POS / center behave (it picks a monitor).

Fine: the default, accepted values, clamping and the warning fallback match window_position() in present.rs on main (empty or auto -> Windows' default, center -> primary monitor's work area, x,y clamped into the nearest monitor, anything else warns and uses auto); no trailing whitespace; line lengths match the neighbours; no other PR documents this variable.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Triage (#1607) – head 42dd7f2

No open or merged PR documents XCL_WINDOW_POS in the README. The text matches present.rs::window_position on main: auto, center on the primary monitor's work area, x,y clamped to the nearest monitor, and a warning with a fallback to auto otherwise.
One formatting point: the new item starts with - at the top level, but the items around it (XCL_WAIT_TIMEOUT_MS …) sit under "Switches for how a title runs" with -, so it renders outside that list. It also edits the same README lines as #3560 and the author's other README PRs, so these will conflict with each other.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs-ci Documentation, scripts, workflows, repo governance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants