Skip to content

fix: refresh winit scene on scale changes#10677

Draft
oz-for-oss[bot] wants to merge 1 commit into
masterfrom
oz-agent/implement-issue-10673-wayland-scale-refresh
Draft

fix: refresh winit scene on scale changes#10677
oz-for-oss[bot] wants to merge 1 commit into
masterfrom
oz-agent/implement-issue-10673-wayland-scale-refresh

Conversation

@oz-for-oss
Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot commented May 11, 2026

Closes #10673

Summary

  • Treat winit ScaleFactorChanged events as resize-like invalidations so the cached scene is rebuilt with the current backing scale factor.
  • Preserve the existing Windows minimum-size correction while allowing Linux/Wayland scale-factor transitions to request a redraw and refresh surface state.
  • Document why Wayland output scale changes need this path when moving between monitors with different DPI settings.

Validation

  • cargo fmt
  • cargo check -p warpui
  • cargo clippy -p warpui --all-targets --all-features --tests -- -D warnings

Notes

  • Also attempted cargo clippy --workspace --all-targets --all-features --tests -- -D warnings; the sandbox killed the run with SIGKILL while compiling the warp test target before any lint diagnostics were emitted.

Rebuild the cached winit scene when the window scale factor changes so Wayland output transitions rerasterize with the current backing scale factor.

Co-Authored-By: Sathvik Vangavolu <113149539+vikvang@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blurry scaling on Linux Wayland when moving Warp between monitors with differen…

1 participant