From ab40655131309811c38df351d53a8311208b4497 Mon Sep 17 00:00:00 2001 From: BREW <81044362+b-re-w@users.noreply.github.com> Date: Mon, 9 Nov 2026 20:22:41 +0900 Subject: [PATCH] Test: Nudge fullscreen-sidebar one pixel narrower On a runner the parked window is already as wide as Windows allows, so one pixel wider changed nothing, the browser did not lay out and the sidebar stayed. Co-Authored-By: Claude Opus 5.5 --- scripts/tests/windows-features.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/tests/windows-features.ps1 b/scripts/tests/windows-features.ps1 index a1b05a7..f7b463c 100644 --- a/scripts/tests/windows-features.ps1 +++ b/scripts/tests/windows-features.ps1 @@ -2500,10 +2500,11 @@ function Invoke-FullscreenSidebar($Name, $shots) { $style = [SurfaceWin]::GetLong($ctx.Hwnd, -16) $bare = [IntPtr]([int64]$style -band (-bnot [int64]0x40000)) [SurfaceWin]::SetLong($ctx.Hwnd, -16, $bare) | Out-Null - # One pixel wider than the parked window and back, which a runner's small display leaves alone. + # One pixel narrower than the parked window and back. A wider window can be held at the most + # Windows allows, which on a runner's small display is the parked width, so nothing would move. $pr = New-Object FeatureWin+R; [FeatureWin]::GetWindowRect($ctx.Hwnd, [ref]$pr) | Out-Null $pw = $pr.Ri - $pr.L; $ph = $pr.B - $pr.T - [FeatureWin]::SetWindowPos($ctx.Hwnd, [IntPtr]::Zero, 0, 0, $pw + 1, $ph, 0x36) | Out-Null + [FeatureWin]::SetWindowPos($ctx.Hwnd, [IntPtr]::Zero, 0, 0, $pw - 1, $ph, 0x36) | Out-Null Start-Sleep 4 $full = Get-Capture $ctx (Join-Path $shots 'fullscreen-sidebar-2-full.png') [SurfaceWin]::SetLong($ctx.Hwnd, -16, $style) | Out-Null