Skip to content

test: check live resizes on Windows and Hyprland - #2328

Closed
oneo-me wants to merge 1 commit into
mainfrom
1375-live-resize-checks
Closed

oneo-me wants to merge 1 commit into
mainfrom
1375-live-resize-checks

Conversation

@oneo-me

@oneo-me oneo-me commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #1375

Adds two opt-in live checks (NSGO_LIVE_RESIZE=1) that read the screen through a window whose app takes 12 ms to style each size, and records what they found in application.md and the roadmap.

  • Windows (TestEdgeDragShowsEachSizeLaidOut): drags the right edge with the system pointer through the modal sizing loop, 400 px out and back, sampling the composed screen three times per step. On a Windows 11 desktop (build 26300, scale 1.0): 3 of 3 runs show no stretched frame or window background in 240 samples. With resizeWait cut to 1 ns, 3 of 3 runs fail, with 38 to 40 bad samples each. An app that takes 40 ms per size (past the bound) fails either way, so the check does see these frames.
  • Hyprland (TestCompositorResizeShowsEachSizeLaidOut): steps a floating window's width through Hyprland 0.56's Lua dispatchers, with animations off, and reads one row with grim. Debug logging showed every allocation getting its commit within the wait (about 12.2 ms, no timeouts). Even so, 156 to 159 of 160 samples showed the previous size's layout at the new size, with the last view stretched to the edge. With a 4 ms app about half the samples do, and with a 0 ms app 1 of 160. Raising resizeWait to 100 ms changes nothing. This test fails today and documents the Linux gap left in Application: Resizes that keep up on Windows and Linux #1375.

Run on Windows from an interactive desktop session:

NSGO_LIVE_RESIZE=1 go tool nsgo test -run TestEdgeDragShowsEachSizeLaidOut ./internal/platform/windows

🤖 Claude Opus 5.5

🤖 Generated with Claude Code

@oneo-me oneo-me self-assigned this Nov 24, 2026
@github-actions github-actions Bot added size/XS size/M documentation Improvements or additions to documentation Windows Linux and removed size/XS size/M labels Nov 24, 2026
@oneo-me
oneo-me marked this pull request as ready for review November 24, 2026 15:09
@github-actions github-actions Bot added size/M and removed size/XS labels Nov 24, 2026
@oneo-me
oneo-me force-pushed the 1375-live-resize-checks branch from a2a92bd to 5ca9840 Compare November 24, 2026 15:09
@oneo-me
oneo-me enabled auto-merge (rebase) November 24, 2026 15:09
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oneo-me
oneo-me force-pushed the 1375-live-resize-checks branch from 5ca9840 to b26e3ae Compare November 24, 2026 18:12
@oneo-me oneo-me closed this Nov 24, 2026
auto-merge was automatically disabled November 24, 2026 18:30

Pull request was closed

@oneo-me

oneo-me commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

Closed: its commit landed on main through #2332, which was stacked on this branch (8b47dad).

🤖 Claude Opus 5.5

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

Labels

documentation Improvements or additions to documentation Linux size/M Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant