Closed alexheretic closed 6 years ago
Probably an HiDPI issue.
I've narrowed down the regression to being introduced with 150d2706f9b564e7961b0c30bd7b7e4dd6c37253 (#386).
My hidpi_factor is 1
before & after, so I don't think that is an issue.
This issue is present all x11 DE/WMs on my setup. It's least pronounced in i3, but there is still a difference (mostly the right cut off).
Note: I sized i3 manually
Increasing the border width makes this issue really noticeable.
(Add new_window pixel 20
in .i3/config
)
This is a floating window with a 20px blue border:
I've just tested this on separate hardware too, running Ubuntu 16.04
I think this + @b-r-u's example shows this does indeed affect all x11 setups. We should probably revert 150d2706f9b564e7961b0c30bd7b7e4dd6c37253. Are you able to produce this @jwilm?
I wonder if we can automate a regression test for this - an image comparison under xvfb perhaps? It'd be nice to have a headless test for all backends ideally.
@alexheretic The bug doesn't really show up on my machine because I only have 2 px borders, but there's no doubt it was introduced there. Rather than revert that commit, it would be reasonable to update that code to get the dimensions from the Window
winit references and still return positioning data based on the most-parent window.
@alexheretic does #402 resolve this for you?
@jwilm fair enough, yep I just checked it. Thanks for fixing this!
This commit works for me, too.
@tomaka We should merge #402 and release before closing this don't you think?
Whoops! Merging the PR is now done, closing the issue is ok even when not released.
Today my projects are missing a small part of the top & right sections after updating to winit
0.10.1
. This appears to only affect x11 (I tested in windows which was fine).My projects are all affected using gfx/glutin, but this can also be reproduced by using glium
cargo update; cargo run --example image
winit 0.10.1 (cut off top & right)
winit =0.10.0 (expected)
winit = "=0.10.0" to the Cargo.toml