Servoshell: Update Window::inner_size on WindowEvent::Resized (fix resize bug) (#38461)

Just adds back a line that was omitted when a different commit was
reverted, see the issue for details, I've tested on Gnome Wayland with
Fedora 42 and the bug is fixed

Fixes: https://github.com/servo/servo/issues/38441
cc @yezhizhen

Signed-off-by: Leo Ring <leoring03@gmail.com>
This commit is contained in:
Leo Ring 2025-08-04 14:56:54 +01:00 committed by GitHub
parent 26d2d0f7d8
commit bcc8314dd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -687,6 +687,7 @@ impl WindowPortsMethods for Window {
},
WindowEvent::Resized(new_inner_size) => {
if self.inner_size.get() != new_inner_size {
self.inner_size.set(new_inner_size);
// This should always be set to inner size
// because we are resizing `SurfmanRenderingContext`.
// See https://github.com/servo/servo/issues/38369#issuecomment-3138378527