From 847510ca4bab9fb7ee09e5ac356a14172112191d Mon Sep 17 00:00:00 2001 From: John Tur Date: Tue, 21 Apr 2026 13:35:13 -0400 Subject: [PATCH] Fix broken `is_maximized` check on Windows (#54436) Bad change from https://github.com/zed-industries/zed/pull/54321 Fixes https://github.com/zed-industries/zed/issues/54418 Release Notes: - N/A --- crates/gpui_windows/src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui_windows/src/window.rs b/crates/gpui_windows/src/window.rs index 405d415d713aea85a3784a7e11f818c58b9d228c..f655c1989e2c69743032703532f91b3b517084b6 100644 --- a/crates/gpui_windows/src/window.rs +++ b/crates/gpui_windows/src/window.rs @@ -174,7 +174,7 @@ impl WindowsWindowState { } pub(crate) fn is_maximized(&self) -> bool { - !self.is_fullscreen() + !self.is_fullscreen() && unsafe { IsZoomed(self.hwnd) }.as_bool() } fn bounds(&self) -> Bounds {