On wayland ViewportCommand::InnerSize
doesn't update the content size
#4196
Labels
bug
Something is broken
ViewportCommand::InnerSize
doesn't update the content size
#4196
Describe the bug
On wayland (mutter) when the window is resized using
ViewportCommand::InnerSize
the viewport size doesn't match the window.I suspect this is because winit doesn't send
Resized
events after the resize, the correct way to handle this is applying the value returned fromrequest_inner_size
to the viewport here:egui/crates/egui-winit/src/lib.rs
Lines 1313 to 1322 in d449cb1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Contents are not stretched
Screenshots
Desktop (please complete the following information):
#4197 makes it easier to test.
The text was updated successfully, but these errors were encountered: