mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Fix X11 invalid outer_position, inner_position, outer_size, inner_size, set_outer_position, set_inner_position and is making resizing smooter
This commit is contained in:
@@ -171,6 +171,12 @@ impl State {
|
|||||||
|
|
||||||
self.egui_input.time = Some(self.start_time.elapsed().as_secs_f64());
|
self.egui_input.time = Some(self.start_time.elapsed().as_secs_f64());
|
||||||
|
|
||||||
|
// TODO remove this in winit 0.29
|
||||||
|
// This hack make the window outer_position and size to be valid, X11 Only
|
||||||
|
// That was happending because winit get the window state before the compositor adds decorations!
|
||||||
|
#[cfg(feature = "x11")]
|
||||||
|
window.set_maximized(window.is_maximized());
|
||||||
|
|
||||||
// On Windows, a minimized window will have 0 width and height.
|
// On Windows, a minimized window will have 0 width and height.
|
||||||
// See: https://github.com/rust-windowing/winit/issues/208
|
// See: https://github.com/rust-windowing/winit/issues/208
|
||||||
// This solves an issue where egui window positions would be changed when minimizing on Windows.
|
// This solves an issue where egui window positions would be changed when minimizing on Windows.
|
||||||
|
|||||||
Reference in New Issue
Block a user