diff --git a/crates/layout/src/window_controls.rs b/crates/layout/src/window_controls.rs index cef8d47..0c348aa 100644 --- a/crates/layout/src/window_controls.rs +++ b/crates/layout/src/window_controls.rs @@ -148,6 +148,12 @@ impl RenderOnce for WindowControls { }) }; + #[cfg(not(any(target_os = "macos", target_os = "windows", target_os = "linux")))] + let controls = { + let _ = (id, window, cx); + div() + }; + controls } } @@ -167,6 +173,10 @@ fn maximize_on_double_click() -> impl Fn(&ClickEvent, &mut Window, &mut App) + ' { let _ = (event, window); } + #[cfg(not(any(target_os = "macos", target_os = "linux", target_os = "windows")))] + { + let _ = (event, window); + } } }