Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scripts/tests/windows-features.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading