From ecb7d1072ffd21a2de5bbd7d2d65170375c87277 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 25 Jan 2023 09:33:07 -0800 Subject: [PATCH] Fixes a broken conditional that is only caught on darwin systems --- crates/gpui/src/platform/mac/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index 191ab77058..bef6f65e42 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -777,7 +777,7 @@ impl platform::Window for Window { let is_panel: BOOL = msg_send![top_most_window, isKindOfClass: PANEL_CLASS]; let is_window: BOOL = msg_send![top_most_window, isKindOfClass: WINDOW_CLASS]; - if is_panel | is_window { + if is_panel == YES || is_window == YES { let topmost_window_id = get_window_state(&*top_most_window).borrow().id; topmost_window_id == self_id } else {