From 0192c50157f460ee4124e9288a46702a87aa09fa Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Tue, 10 Nov 2026 20:54:14 +0700 Subject: [PATCH] fix: render window controls on unsupported targets --- crates/layout/src/window_controls.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); + } } }