eframe::NativeOptions::decorated
set to false
incorrectly offsets UI on Windows 10
#2770
Labels
bug
Something is broken
Describe the bug
When running an egui app natively on Windows 10 with
eframe::NativeOptions::decorated
set tofalse
, the visual render of the UI is offset towards right and bottom edges of the window, while interactions (like clicking a location) still correspond with the locations where UI elements should have been.custom_window_frame.mp4
The offset zone is apparent more obviously with window transparency turned off.
To Reproduce
Run an egui app or any of the repository examples natively (commit
e1f348e
or later) witheframe::NativeOptions::decorated
set tofalse
.Expected behavior
For the window interactions to correspond to the visually rendered UI and not for parts of the UI to be out of window bounds.
Desktop (please complete the following information):
Additional context
This appears to be a
winit
issue for versions above0.27.2
and was introduced into this repo at this point, whenwinit
version was bumped up to0.27.5
inCargo.lock
.For those willing to downgrade to make use of the otherwise borked feature, you can clone the repo at this commit, which seems to be the latest commit that is still compatible with
winit 0.27.2
, lockwinit
to version0.27.2
in the rootCargo.toml
and updateCargo.lock
withcargo update
The text was updated successfully, but these errors were encountered: