From e842b4eade368127f01944f1b442016edd6b292d Mon Sep 17 00:00:00 2001 From: Stanislav Alekseev <43210583+WeetHet@users.noreply.github.com> Date: Thu, 13 Mar 2025 09:15:01 +0200 Subject: [PATCH] macOS: Disable automatic window tabbing in fullscreen mode (#26600) Fixes #26534 (this time for real) Release Notes: - Fixed issue where Zed would behave weirdly when opening new fullscreen windows by disabling window tabbing Apple docs: https://developer.apple.com/documentation/appkit/nswindow/allowsautomaticwindowtabbing --- crates/gpui/src/platform/mac/window.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index 5046a9d0412c971446c3149a2c36b5cd44f39624..5c7d9e5e93c1e461e609d03d963621cc5594d0ef 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -92,6 +92,8 @@ extern "C" { #[ctor] unsafe fn build_classes() { + let _: () = msg_send![class!(NSWindow), setAllowsAutomaticWindowTabbing: NO]; + WINDOW_CLASS = build_window_class("GPUIWindow", class!(NSWindow)); PANEL_CLASS = build_window_class("GPUIPanel", class!(NSPanel)); VIEW_CLASS = {