From c3f7869026fe3c368c667c6d6d40cfe6c7fef277 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Thu, 24 Sep 2026 02:45:00 -0700 Subject: [PATCH] fix: present the resized frame inside the window resize The surface already presents with AppKit's transaction, but a resize only requested a redraw, so the window could show the previous frame stretched to the new size until the next turn of the event loop. Resized now draws before returning. Built and tested headless; the visual result has not yet been checked on a display. Assisted-by: claude-opus-5.5 --- crates/snowbound/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/snowbound/src/main.rs b/crates/snowbound/src/main.rs index cbcecbbbe14c743cb531a161080e7ba83558030a..0021f084c944cb389fcf1719ae3eaab24a05f7fb 100644 --- a/crates/snowbound/src/main.rs +++ b/crates/snowbound/src/main.rs @@ -1354,6 +1354,9 @@ impl ApplicationHandler for App { .surface .configure(&state.renderer.device, &state.config); state.changed()?; + // Present inside AppKit's resize transaction; a redraw on the next turn + // lets the window show the previous frame at the new size. + state.draw()?; } } WindowEvent::ScaleFactorChanged { scale_factor, .. } => { -- 2.54.0