diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index 435ece8d645..e00083c5a13 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -204,12 +204,6 @@ impl State { 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(all(feature = "x11", target_os = "linux"))] - window.set_maximized(window.is_maximized()); - // On Windows, a minimized window will have 0 width and height. // See: https://github.com/rust-windowing/winit/issues/208 // This solves an issue where egui window positions would be changed when minimizing on Windows.