mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 23:13:13 -04:00
only apply x11 stuff on linux
Co-authored-by: Pablo Sichert <mail@pablosichert.com>
This commit is contained in:
@@ -189,7 +189,7 @@ impl State {
|
||||
// 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")]
|
||||
#[cfg(all(feature = "x11", target_os = "linux"))]
|
||||
window.set_maximized(window.is_maximized());
|
||||
|
||||
// On Windows, a minimized window will have 0 width and height.
|
||||
|
||||
Reference in New Issue
Block a user