-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On wayland ViewportCommand::InnerSize
doesn't update the content size
#4196
Labels
bug
Something is broken
Comments
This was referenced Mar 20, 2024
This was referenced Mar 22, 2024
I just ran into this bug today. Same behavior, this time on Arch+KDE. Only occurs in Wayland, the same device with an x11 session computes the dimensions correctly, even with DPI scaling applied. |
The behaviour is documented here: |
emilk
pushed a commit
that referenced
this issue
Mar 25, 2024
An alternative to the "Phone Size" button useful for testing `ViewportCommand::InnerSize`. I created this to make it easy to debug #4196 there are more details there.
hacknus
pushed a commit
to hacknus/egui
that referenced
this issue
Oct 30, 2024
An alternative to the "Phone Size" button useful for testing `ViewportCommand::InnerSize`. I created this to make it easy to debug emilk#4196 there are more details there.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: