Skip to content

Commit

Permalink
only apply x11 stuff on linux
Browse files Browse the repository at this point in the history
Co-authored-by: Pablo Sichert <[email protected]>
  • Loading branch information
emilk and pablosichert authored Nov 9, 2023
1 parent 9676115 commit a852333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui-winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a852333

Please sign in to comment.