From a852333f9b67c629a2be67ed5af40894ebde63f8 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 9 Nov 2023 19:11:38 +0100 Subject: [PATCH] only apply x11 stuff on linux Co-authored-by: Pablo Sichert --- crates/egui-winit/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui-winit/src/lib.rs b/crates/egui-winit/src/lib.rs index eec06fbbb..38003b7ba 100644 --- a/crates/egui-winit/src/lib.rs +++ b/crates/egui-winit/src/lib.rs @@ -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.