Repository navigation
Conversation
…-dev#175) XCL cloaks the title's 1920x1080 console window via `DwmSetWindowAttribute` (`DWMWA_CLOAK`) so it stays invisible behind XCL's own presenter window. On environments without DWM cloaking (such as Wine), the call fails or leaves `DWMWA_CLOAKED == 0`, so the title window remains visible on top of XCL. Check both `DwmSetWindowAttribute` and `DwmGetWindowAttribute(DWMWA_CLOAKED)`; when the window is not actually cloaked, hide it with `ShowWindow(SW_HIDE)` and strip `SWP_SHOWWINDOW` in `WM_WINDOWPOSCHANGING` so title calls to show it keep it hidden while preserving its 1920x1080 client rect.
|
Test run of Tested
Review: Hiding the console window only when Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Regression runs for this PR's head main: this PR: Tested
Not tested
Report written with Claude Code (Claude Opus 5.5) from runs on this machine. |
|
Linux (Wine) report on NVIDIA. Tested
Not tested: Windows; the whole workspace suite (only AI use: Claude Code (Claude Opus 5.5) read the logs and the title's call site, built the branches, ran the tests and the scripted runs, and wrote this report. The runs are on my machine, on the hardware above. |
The test title's window check required DWMWA_CLOAKED != 0. Under Wine, DwmGetWindowAttribute(DWMWA_CLOAKED) succeeds and reports 0 (no DWM cloaking), so the check failed with "W: not cloaked" on every Linux and macOS run. xcl-dev#794 makes XCL hide the window in that case and keep it hidden when the title shows it again (SWP_SHOWWINDOW stripped in WM_WINDOWPOSCHANGING). The check now accepts that, with xcl-dev#794's own condition: a window must be cloaked, or not visible. It also shows each window again (ShowWindow SW_SHOW, SetWindowPos SWP_SHOWWINDOW) and requires it to stay concealed, which covers the second half of xcl-dev#794 on every platform. The two windows and the class are cleaned up on every path, and a failed cleanup is reported.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Keep the title's 1920x1080 console window hidden when DWM window cloaking is unavailable (as under Wine), where
DwmSetWindowAttribute(DWMWA_CLOAK)fails or leavesDWMWA_CLOAKED == 0and causes the title's blank window to cover XCL's presenter window. Part of #175.What is in it
crates/xcl/src/hle/user.rs: queryDwmGetWindowAttribute(DWMWA_CLOAKED)afterDwmSetWindowAttribute(DWMWA_CLOAK); if cloaking did not take effect, callShowWindow(hwnd, SW_HIDE)and stripSWP_SHOWWINDOWinconsole_wndproconWM_WINDOWPOSCHANGINGso subsequent title show calls keep it hidden while keeping its 1920x1080 client rect.crates/xcl/src/hle/user.rs(tests): addconsole_window_stays_hidden_when_uncloaked.Tested
rustc 1.98.1(x86_64-pc-windows-msvccross-compile), debug.cargo test --workspace --no-fail-fast --target x86_64-pc-windows-msvc -- --test-threads=4 --skip a_freed_block_is_decommitted_before_its_address_is_reused: 700 passed, 4 failed (pre-existing Wine-only failures:hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime,test_title_runs_and_game_folder_is_untouched,disk_free_space_ex_reports_pls_quota,set_predication_buffer_state_and_kickoff), 41 ignored, 1 filtered (a_freed_block_is_decommitted_before_its_address_is_reused).SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64).hle::user::tests::console_window_stays_hidden_when_uncloaked(verifiedIsWindowVisible == 0under Wine afterShowWindow(SW_SHOW)andSetWindowPos(SWP_SHOWWINDOW)).Regression run
scripts/smoke.ps1runs on a retail title (Linux/Proton environment only).Not tested
cloaked != 0), AMD RDNA,scripts/smoke.ps1retail regression run.AI use