D3D12.X: DPI-aware XCL window, borderless fullscreen and a monitor choice #729

Open
MrCheese5 wants to merge 4 commits from upstream-pr/734 into main
MrCheese5 commented 2026-11-24 04:16:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MrCheese5 on 2026-11-24T04:16:57Z.


Stacked on #555, #732 and #733; only the top commit belongs here.

At 125 % display scaling, Windows enlarged the DPI-unaware XCL window, so the game's image was drawn smaller and then blurred back up.

  • The process is per-monitor DPI aware (V2), set in host_main before the window exists. window_width and window_height are at 100 % and get scaled by the monitor's DPI, and WM_DPICHANGED takes the size Windows suggests.
  • fullscreen (XCL_FULLSCREEN, default false): a borderless window over the monitor at its native resolution. Alt+Enter or F11 switches while the game runs.
  • monitor (XCL_MONITOR, default "primary"): "primary", a number from the monitor N: list logged at start, or a device name. With window_pos = "auto", the window is centred on a named monitor.

This changes behaviour for everyone on a scaled display: a 1280x720 window is 1600x900 pixels at 125 %, the same size on screen as before, but sharp.

What is in it

  • crates/xcl/src/hle/d3d12x/present.rs: DPI awareness, the monitor list and choice, fullscreen and its toggle, the window sized at the monitor's DPI; a test of pick_monitor()
  • crates/xcl/src/host.rs: dpi_aware() at start
  • crates/xcl/Cargo.toml: the Win32_UI_HiDpi feature of the windows crate (no new crate)
  • crates/xcl/src/config.rs, README.md: fullscreen, monitor

Tested

  • RTX 4090 (driver 621.14), i9-14900K, Windows 11 26200, Rust stable-x86_64-pc-windows-msvc, debug tests, release smoke runs
  • cargo test -p xcl --lib pick_monitor: covered by the suite run below
  • cargo test --workspace -- --test-threads=1: 698 passed, 0 failed, 41 ignored; SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask (no wave64), gpu_wave32_program_in_wave64_hardware (no wave64)
  • Single-threaded on purpose: with --test-threads=4, GPU tests on this machine hang or lose the device tonight on main too (bdab194 and 91f9a5e; bdab194 had passed with 4 threads earlier the same night, and the driver logs GPU errors). Single-threaded, main 91f9a5e passes (cargo test -p xcl --lib -- --test-threads=1: 647 passed, 0 failed).

Regression run
Both runs use a fresh data root of their own and the default settings (a 1280x720 window, nothing new turned on), so this shows that nothing else changes.

xcl-smoke v1
commit: 91f9a5e9f03156ea82dc55a18f7704862da7a5db
gpu: NVIDIA GeForce RTX 4090
title: Xbox
seconds: 60
exit: 0x0
frames shown: 811 (PresentX 811)
presents per 2 s (last 3): 37 34 36
device removals: 0
crashes: 0
peak commit: 15536 MB
xcl-smoke v1
commit: d8dfa6f2d54bf5fe89bf10869598aab7a3c7357d
gpu: NVIDIA GeForce RTX 4090
title: Xbox
seconds: 60
exit: 0x0
frames shown: 835 (PresentX 835)
presents per 2 s (last 3): 36 37 36
device removals: 0
crashes: 0
peak commit: 15550 MB

Not tested

  • Alt+Enter and F11 by hand, and WM_DPICHANGED when moving between monitors of different scales.
  • Fullscreen on a secondary monitor.
  • AMD and wave64 GPUs.

AI use

  • Claude Code with Claude Opus 5.5: wrote the code, the tests and this description; the hardware checks above are runs on the machine named under Tested.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5465984869 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/734). Originally posted by [MrCheese5](https://github.com/MrCheese5) on 2026-11-24T04:16:57Z. --- Stacked on #555, #732 and #733; only the top commit belongs here. At 125 % display scaling, Windows enlarged the DPI-unaware XCL window, so the game's image was drawn smaller and then blurred back up. - The process is per-monitor DPI aware (V2), set in `host_main` before the window exists. `window_width` and `window_height` are at 100 % and get scaled by the monitor's DPI, and `WM_DPICHANGED` takes the size Windows suggests. - `fullscreen` (`XCL_FULLSCREEN`, default false): a borderless window over the monitor at its native resolution. Alt+Enter or F11 switches while the game runs. - `monitor` (`XCL_MONITOR`, default "primary"): "primary", a number from the `monitor N:` list logged at start, or a device name. With `window_pos = "auto"`, the window is centred on a named monitor. This changes behaviour for everyone on a scaled display: a 1280x720 window is 1600x900 pixels at 125 %, the same size on screen as before, but sharp. **What is in it** - `crates/xcl/src/hle/d3d12x/present.rs`: DPI awareness, the monitor list and choice, fullscreen and its toggle, the window sized at the monitor's DPI; a test of `pick_monitor()` - `crates/xcl/src/host.rs`: `dpi_aware()` at start - `crates/xcl/Cargo.toml`: the `Win32_UI_HiDpi` feature of the `windows` crate (no new crate) - `crates/xcl/src/config.rs`, `README.md`: `fullscreen`, `monitor` **Tested** - RTX 4090 (driver 621.14), i9-14900K, Windows 11 26200, Rust stable-x86_64-pc-windows-msvc, debug tests, release smoke runs - `cargo test -p xcl --lib pick_monitor`: covered by the suite run below - `cargo test --workspace -- --test-threads=1`: 698 passed, 0 failed, 41 ignored; SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64), `gpu_wave32_program_in_wave64_hardware` (no wave64) - Single-threaded on purpose: with `--test-threads=4`, GPU tests on this machine hang or lose the device tonight on `main` too (bdab194 and 91f9a5e; bdab194 had passed with 4 threads earlier the same night, and the driver logs GPU errors). Single-threaded, `main` 91f9a5e passes (`cargo test -p xcl --lib -- --test-threads=1`: 647 passed, 0 failed). **Regression run** Both runs use a fresh data root of their own and the default settings (a 1280x720 window, nothing new turned on), so this shows that nothing else changes. ``` xcl-smoke v1 commit: 91f9a5e9f03156ea82dc55a18f7704862da7a5db gpu: NVIDIA GeForce RTX 4090 title: Xbox seconds: 60 exit: 0x0 frames shown: 811 (PresentX 811) presents per 2 s (last 3): 37 34 36 device removals: 0 crashes: 0 peak commit: 15536 MB ``` ``` xcl-smoke v1 commit: d8dfa6f2d54bf5fe89bf10869598aab7a3c7357d gpu: NVIDIA GeForce RTX 4090 title: Xbox seconds: 60 exit: 0x0 frames shown: 835 (PresentX 835) presents per 2 s (last 3): 36 37 36 device removals: 0 crashes: 0 peak commit: 15550 MB ``` **Not tested** - Alt+Enter and F11 by hand, and `WM_DPICHANGED` when moving between monitors of different scales. - Fullscreen on a secondary monitor. - AMD and wave64 GPUs. **AI use** - Claude Code with Claude Opus 5.5: wrote the code, the tests and this description; the hardware checks above are runs on the machine named under **Tested**. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
LocranKing commented 2026-11-24 07:06:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-24T04:46:55Z.


Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32).

Tested

  • Commit: d8dfa6f2d54bf5fe89bf10869598aab7a3c7357d (pr-734, clean tree)
  • Hardware / software: Windows 11 Home Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (8024 MiB VRAM, driver 32.0.16.2101), rustc 1.100.0 (x86_64-pc-windows-msvc, MSVC 14.44.35207), DXC 1.9.2602.17 (SDK 10.0.26100.0), --release
  • cargo test --workspace --release --no-fail-fast -- --test-threads=4:
    • xcl lib: 657 passed, 1 failed, 21 ignored (hle::d3d12x::real::readback_routing_tests::coherent_buffer_sanitizes_console_flags_and_state panicked at crates\xcl\src\hle\d3d12x\real.rs:5355:17 on assert_ne!(VirtualFree(...), 0)).
    • Remaining 15 workspace targets: 40 passed, 0 failed, 20 ignored; 2 (no wave64) skipped (gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware).
    • Re-run standalone (cargo test --release -p xcl --lib coherent_buffer_sanitizes_console_flags_and_state): 1 passed, 0 failed (appears to be a --test-threads=4 concurrency flake, not a regression from #734).

Regression run (scripts/smoke.ps1, 60 s, XCL_NETWORK=0, title folder name redacted)

main (64b3f35):

xcl-smoke v1
commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175
gpu: NVIDIA GeForce RTX 3060 Ti
title: retail-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 544 (PresentX 545)
presents per 2 s (last 3): 22 22 21
device removals: 0
crashes: 0
peak commit: 15491 MB

PR #734 (d8dfa6f):

xcl-smoke v1
commit: d8dfa6f2d54bf5fe89bf10869598aab7a3c7357d
gpu: NVIDIA GeForce RTX 3060 Ti
title: retail-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1553 (PresentX 1553)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14711 MB

Not tested: Multi-monitor / borderless fullscreen / DPI-scaled interactive checks, debug build, XCL_SAMPLE_* tests on this branch, AMD / wave64 hardware.

AI use: Antigravity (Gemini 4 Hydrogen) ran the build, tests, and smoke runs and drafted this report from the command outputs.

<!-- greyfinch-sync:ivall/xcl:comment:7122333203 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/734#issuecomment-7122333203). Originally posted by [LocranKing](https://github.com/LocranKing) on 2026-11-24T04:46:55Z. --- Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32). **Tested** - Commit: `d8dfa6f2d54bf5fe89bf10869598aab7a3c7357d` (`pr-734`, clean tree) - Hardware / software: Windows 11 Home Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (`8024 MiB VRAM`, driver `32.0.16.2101`), `rustc 1.100.0` (`x86_64-pc-windows-msvc`, MSVC `14.44.35207`), DXC `1.9.2602.17` (SDK `10.0.26100.0`), `--release` - `cargo test --workspace --release --no-fail-fast -- --test-threads=4`: - `xcl` lib: **657 passed, 1 failed, 21 ignored** (`hle::d3d12x::real::readback_routing_tests::coherent_buffer_sanitizes_console_flags_and_state` panicked at `crates\xcl\src\hle\d3d12x\real.rs:5355:17` on `assert_ne!(VirtualFree(...), 0)`). - Remaining 15 workspace targets: **40 passed, 0 failed, 20 ignored**; `2 (no wave64)` skipped (`gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`). - Re-run standalone (`cargo test --release -p xcl --lib coherent_buffer_sanitizes_console_flags_and_state`): **1 passed, 0 failed** (appears to be a `--test-threads=4` concurrency flake, not a regression from #734). **Regression run** (`scripts/smoke.ps1`, 60 s, `XCL_NETWORK=0`, title folder name redacted) main (`64b3f35`): ``` xcl-smoke v1 commit: 64b3f35599bb7102f55d640e1a791e7d6dd3b175 gpu: NVIDIA GeForce RTX 3060 Ti title: retail-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 544 (PresentX 545) presents per 2 s (last 3): 22 22 21 device removals: 0 crashes: 0 peak commit: 15491 MB ``` PR #734 (`d8dfa6f`): ``` xcl-smoke v1 commit: d8dfa6f2d54bf5fe89bf10869598aab7a3c7357d gpu: NVIDIA GeForce RTX 3060 Ti title: retail-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1553 (PresentX 1553) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14711 MB ``` **Not tested:** Multi-monitor / borderless fullscreen / DPI-scaled interactive checks, debug build, `XCL_SAMPLE_*` tests on this branch, AMD / wave64 hardware. **AI use:** Antigravity (`Gemini 4 Hydrogen`) ran the build, tests, and smoke runs and drafted this report from the command outputs.
MesshM commented 2026-11-24 07:06:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T04:47:40Z.


Test run of d8dfa6f2d54bf5fe89bf10869598aab7a3c7357d on AMD RDNA4. I merged it onto current main 64b3f35 locally (clean merge), so the tree tested includes the stack under it (#555, #732, #733).

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 707 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 666 passed, 0 failed, 21 ignored
  • 0 SKIPPED; pick_monitor_by_setting and the other present tests pass.

Review: Per-monitor DPI awareness (V2) is set in host_main before any window exists, which is the order Windows requires. The window and fullscreen behaviour itself needs a desktop session and was not exercised by the tests; I reviewed the top commit only.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

<!-- greyfinch-sync:ivall/xcl:comment:7122344733 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/734#issuecomment-7122344733). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T04:47:40Z. --- Test run of `d8dfa6f2d54bf5fe89bf10869598aab7a3c7357d` on AMD RDNA4. I merged it onto current `main` `64b3f35` locally (clean merge), so the tree tested includes the stack under it (#555, #732, #733). **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **707 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 666 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `pick_monitor_by_setting` and the other `present` tests pass. **Review:** Per-monitor DPI awareness (V2) is set in `host_main` before any window exists, which is the order Windows requires. The window and fullscreen behaviour itself needs a desktop session and was not exercised by the tests; I reviewed the top commit only. **Not tested:** no retail title or regression run (I have no unpacked game), no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
JJAutoCompare commented 2026-11-25 07:05:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T06:18:21Z.


Empirical test report (d8dfa6f2)

Hardware / environment

Commit d8dfa6f2d54bf5fe89bf10869598aab7a3c7357d on STOR-WINLAB, Windows 10.0.26200.9974, non-interactive Session 0. AMD Ryzen 7 3800X (8 cores). Rust and Cargo 1.100.0, target x86_64-pc-windows-msvc, unoptimized test profile with debug info and incremental compilation disabled. DXC 1.9.2609.5. The focused D3D12 run held the Intel Arc A770 test lock with XCL_ADAPTER=A770. The test helper uses the default D3D12 adapter with a WARP fallback and reports neither selection, so the actual adapter is unconfirmed.

Commands and results

  • cargo test --workspace --no-run exited 0 outside the Arc launcher. It compiled the workspace test binaries.
  • With XCL_ADAPTER=NONE_CPU_ONLY, xcl-605328e7431afb17.exe pick_monitor_by_setting window_position_modes route_filters_only_when_the_window_is_smaller place_keeps_the_aspect_ratio --test-threads=1 exited 0. 4 passed, 0 failed, 0 ignored, 0 skipped.
  • Under Invoke-ArcTest.ps1 with XCL_ADAPTER=A770, xcl-605328e7431afb17.exe downscale_matches_a_cpu_area_filter placed_image_between_black_bars swap_chain_follows_the_window --test-threads=1 exited 101. 2 passed, 1 failed, 0 ignored, 0 skipped.
  • Both focused runs used RUST_TEST_NOCAPTURE=1. Total: 6 passed, 1 failed, 0 ignored, and 0 case-sensitive SKIPPED lines.

Observed behavior

Monitor selection, window-position modes, scaling route selection, and aspect-ratio placement passed. The D3D12 readbacks matched the CPU area filter and verified black bars. swap_chain_follows_the_window failed on the first 1280×720 frame after CreateSwapChainForHwnd returned 0x887A0022 (DXGI_ERROR_NOT_CURRENTLY_AVAILABLE), the expected Session 0 restriction.

Not tested

Full GPU workspace suite, interactive desktop presentation (Session 0), and game smoke runs.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr734-focused.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7154653916 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/734#issuecomment-7154653916). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T06:18:21Z. --- ### Empirical test report (d8dfa6f2) **Hardware / environment** Commit `d8dfa6f2d54bf5fe89bf10869598aab7a3c7357d` on STOR-WINLAB, Windows 10.0.26200.9974, non-interactive Session 0. AMD Ryzen 7 3800X (8 cores). Rust and Cargo 1.100.0, target `x86_64-pc-windows-msvc`, unoptimized test profile with debug info and incremental compilation disabled. DXC 1.9.2609.5. The focused D3D12 run held the Intel Arc A770 test lock with `XCL_ADAPTER=A770`. The test helper uses the default D3D12 adapter with a WARP fallback and reports neither selection, so the actual adapter is unconfirmed. **Commands and results** - `cargo test --workspace --no-run` exited 0 outside the Arc launcher. It compiled the workspace test binaries. - With `XCL_ADAPTER=NONE_CPU_ONLY`, `xcl-605328e7431afb17.exe pick_monitor_by_setting window_position_modes route_filters_only_when_the_window_is_smaller place_keeps_the_aspect_ratio --test-threads=1` exited 0. 4 passed, 0 failed, 0 ignored, 0 skipped. - Under `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770`, `xcl-605328e7431afb17.exe downscale_matches_a_cpu_area_filter placed_image_between_black_bars swap_chain_follows_the_window --test-threads=1` exited 101. 2 passed, 1 failed, 0 ignored, 0 skipped. - Both focused runs used `RUST_TEST_NOCAPTURE=1`. Total: 6 passed, 1 failed, 0 ignored, and 0 case-sensitive `SKIPPED ` lines. **Observed behavior** Monitor selection, window-position modes, scaling route selection, and aspect-ratio placement passed. The D3D12 readbacks matched the CPU area filter and verified black bars. `swap_chain_follows_the_window` failed on the first 1280×720 frame after `CreateSwapChainForHwnd` returned `0x887A0022` (`DXGI_ERROR_NOT_CURRENTLY_AVAILABLE`), the expected Session 0 restriction. **Not tested** Full GPU workspace suite, interactive desktop presentation (Session 0), and game smoke runs. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr734-focused.log and published.
DavidM1911 commented 2026-11-25 12:06:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T11:38:47Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7161315299 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/734#issuecomment-7161315299). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T11:38:47Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
ozimchuk commented 2026-11-25 19:09:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ozimchuk on 2026-11-25T18:48:05Z.


A Linux test of the exact head d8dfa6f (on its base main 91f9a5e): entering fullscreen works under Wine, with and without a window manager; on GNOME (Mutter) the way back to a window misplaces it, and one Alt+Enter was not acted on.

Tested

  • NVIDIA (32-lane waves), Linux, Wine 11.21 + vkd3d-proton (VKD3D_CONFIG=ignore_shared_fence), release build for x86_64-pc-windows-gnu; a 1920x1080 monitor at 100 %.
  • The retail title in Series X mode. Keys sent with XTest (F11, Alt+Return) to the XCL window; the screen captured after each step (the screen itself, not a frame dump).
  • Detection: monitor 1: \\.\DISPLAY1 1920x1080 at 0,0, 100 % scale, primary, XCL window created (1600x900 pixels, 100 % scale).

Under Xvfb, no window manager

  • F11: XCL window: fullscreen 1920x1080 at 0,0, the window covers the screen; F11 again: XCL window: windowed 1608x934, back to the window. Both as expected.
  • XCL_FULLSCREEN=1: starts as fullscreen 1920x1080 at 0,0 (fullscreen – Alt+Enter or F11 for a window), swap chain 1920x1080.

On GNOME (Mutter), X11

step log on screen
start created (1600x900 …) a normal window
F11 fullscreen 1920x1080 at 0,0 the screen filled
F11 windowed 1608x934 misplaced: the frame at the top of the screen and the client area shifted down and to the left, past the frame
Alt+Enter fullscreen 1920x1080 at 0,0 the screen filled
Alt+Enter (4 s later) nothing logged still fullscreen

So entering fullscreen is fine here; restoring the window does not come back to its old frame and position under this window manager, and the second Alt+Enter did not toggle.

Not caused by this PR, for context

  • The image in the window was black in all of these runs, so the captures show window geometry only. Under Xvfb the presented image never shows in a screen capture here, with or without this PR; on the desktop I did not run the base for comparison, so I make no claim about the image.
  • The two Xvfb runs with the PR ended at 47–56 s in msvcrt.dll (read access violation); the base without it ended the same way at 81 s; the desktop run with the PR went on for about 4 minutes until I closed it. So I would not read those crashes as this PR's.
  • The PR now conflicts with main (present.rs, host.rs), so these runs are on its own base.

Not tested: Windows; Wayland; a scaled display (only 100 %); a second monitor; the monitor setting.

AI-assisted. Claude Code, Claude Opus 5.5 made the runs and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7171418326 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/734#issuecomment-7171418326). Originally posted by [ozimchuk](https://github.com/ozimchuk) on 2026-11-25T18:48:05Z. --- A Linux test of the exact head `d8dfa6f` (on its base `main` `91f9a5e`): entering fullscreen works under Wine, with and without a window manager; on GNOME (Mutter) the way back to a window misplaces it, and one Alt+Enter was not acted on. **Tested** - NVIDIA (32-lane waves), Linux, Wine 11.21 + vkd3d-proton (`VKD3D_CONFIG=ignore_shared_fence`), release build for `x86_64-pc-windows-gnu`; a 1920x1080 monitor at 100 %. - The retail title in Series X mode. Keys sent with XTest (F11, Alt+Return) to the XCL window; the screen captured after each step (the screen itself, not a frame dump). - Detection: `monitor 1: \\.\DISPLAY1 1920x1080 at 0,0, 100 % scale, primary`, `XCL window created (1600x900 pixels, 100 % scale)`. **Under Xvfb, no window manager** - F11: `XCL window: fullscreen 1920x1080 at 0,0`, the window covers the screen; F11 again: `XCL window: windowed 1608x934`, back to the window. Both as expected. - `XCL_FULLSCREEN=1`: starts as `fullscreen 1920x1080 at 0,0` (`fullscreen – Alt+Enter or F11 for a window`), swap chain 1920x1080. **On GNOME (Mutter), X11** | step | log | on screen | |---|---|---| | start | `created (1600x900 …)` | a normal window | | F11 | `fullscreen 1920x1080 at 0,0` | the screen filled | | F11 | `windowed 1608x934` | **misplaced**: the frame at the top of the screen and the client area shifted down and to the left, past the frame | | Alt+Enter | `fullscreen 1920x1080 at 0,0` | the screen filled | | Alt+Enter (4 s later) | nothing logged | still fullscreen | So entering fullscreen is fine here; restoring the window does not come back to its old frame and position under this window manager, and the second Alt+Enter did not toggle. **Not caused by this PR, for context** - The image in the window was black in all of these runs, so the captures show window geometry only. Under Xvfb the presented image never shows in a screen capture here, with or without this PR; on the desktop I did not run the base for comparison, so I make no claim about the image. - The two Xvfb runs with the PR ended at 47–56 s in `msvcrt.dll` (read access violation); the base without it ended the same way at 81 s; the desktop run with the PR went on for about 4 minutes until I closed it. So I would not read those crashes as this PR's. - The PR now conflicts with `main` (`present.rs`, `host.rs`), so these runs are on its own base. **Not tested**: Windows; Wayland; a scaled display (only 100 %); a second monitor; the `monitor` setting. AI-assisted. Claude Code, Claude Opus 5.5 made the runs and wrote this comment.
github-actions[bot] commented 2026-11-30 08:39:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:39:14Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7273175579 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/734#issuecomment-7273175579). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T08:39:14Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:01:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:01:30Z.


Triage (#1607) – head d8dfa6f

Stacked on #733 (and the closed #555 / #732 commits under it); only d8dfa6f2 belongs here. #735 builds on it. No open PR adds DPI awareness, borderless fullscreen or a monitor choice (#604 is closed).
One thing to check: dpi_aware() sets per-monitor-V2 DPI awareness for the whole process, title included, so the title's own window and GDI metrics become DPI-aware too. The commit message says that window is cloaked, but no test covers it.
Recommendation: keep open.

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

<!-- greyfinch-sync:ivall/xcl:comment:7300300790 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/734#issuecomment-7300300790). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:01:30Z. --- **Triage (#1607)** – head d8dfa6f Stacked on #733 (and the closed #555 / #732 commits under it); only d8dfa6f2 belongs here. #735 builds on it. No open PR adds DPI awareness, borderless fullscreen or a monitor choice (#604 is closed). One thing to check: `dpi_aware()` sets per-monitor-V2 DPI awareness for the whole process, title included, so the title's own window and GDI metrics become DPI-aware too. The commit message says that window is cloaked, but no test covers it. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/734:upstream-pr/734'
git switch 'upstream-pr/734'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/734'
git switch 'upstream-pr/734'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/734'
git switch 'upstream-pr/734'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/734'
git switch 'main'
git merge --squash 'upstream-pr/734'
git switch 'main'
git merge --ff-only 'upstream-pr/734'
git switch 'main'
git merge 'upstream-pr/734'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!729
No description provided.