mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
26d2d0f7d8
commit
bcc8314dd5
1 changed files with 1 additions and 0 deletions
|
@ -687,6 +687,7 @@ impl WindowPortsMethods for Window {
|
||||||
},
|
},
|
||||||
WindowEvent::Resized(new_inner_size) => {
|
WindowEvent::Resized(new_inner_size) => {
|
||||||
if self.inner_size.get() != 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
|
// This should always be set to inner size
|
||||||
// because we are resizing `SurfmanRenderingContext`.
|
// because we are resizing `SurfmanRenderingContext`.
|
||||||
// See https://github.com/servo/servo/issues/38369#issuecomment-3138378527
|
// See https://github.com/servo/servo/issues/38369#issuecomment-3138378527
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue