-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Preset window dimensions are really messy (under wayland) #2230
Comments
Some digging has led me to believe this is only an issue on Wayland. :( |
Yep, no problem on Windows either. This is totally a wayland thing. |
I believe this is an upstream winit issue. Winit handles creating the window with the given dimensions and should take the frame into account. |
Not sure what makes this the case, but the current master branch of iced doesn't have this problem. 🤷 |
I looked at the changelog to see if there was anything addressing this prior to making the issue. Must have been fixed by proxy of some other change. |
Most likely fixed by #2169. |
Is there an existing issue for this?
Is this issue related to iced?
What happened?
Defining the size of the window using
settings.window.size
is wildly inconsistent under wayland. Withsettings.window.resizable
set totrue
, the width is the number of pixels passed in, but the height has ~35 pixels added to it. Withresizable
set tofalse
, both the height and width are ~20 pixels extra. I measured this as best I could with the apt packagescreenruler
's graphical screen ruler. These numbers aren't 100% precise but they are consistent.What is the expected behavior?
When I pass dimensions into the
settings.window.size
setting, the window should be created with those dimensions.Version
crates.io release
Operating System
Linux
Do you have any log output?
No response
The text was updated successfully, but these errors were encountered: