From d1ee040a239306c0175aaa401173131437524e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcell=20Kov=C3=A1cs?= Date: Wed, 18 Nov 2026 09:21:37 +0100 Subject: [PATCH] macOS: fix Window::is_open returning the opposite is_open returned state.closed; it returns whether the window is still open, as on Windows (is_alive) and X11 (!stopped). --- src/platform/macos/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/macos/window.rs b/src/platform/macos/window.rs index 7b6da2de..c1786e73 100644 --- a/src/platform/macos/window.rs +++ b/src/platform/macos/window.rs @@ -100,7 +100,7 @@ impl WindowHandle { } pub fn is_open(&self) -> bool { - self.state.closed.get() + !self.state.closed.get() } #[inline]