From b9432dbe4242cb971e44ef0309efa0253cba6e72 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Fri, 14 Mar 2025 13:43:01 +0000 Subject: [PATCH] macOS: Disable fullscreen window tabbing (take 2) (#26774) Take 2 on https://github.com/zed-industries/zed/pull/26600. Now, it doesn't break remote development. Instead of using it in `build_classes`, it's now used in the `open` method while creating a window. I found similar usage in other places over internet. Release Notes: - Fixed issue where Zed would show mac native tabs when opening new fullscreen windows on macOS. --- 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..dfb4824cd96c3db259e6fbe4a69c4f975897990a 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -512,6 +512,8 @@ impl MacWindow { unsafe { let pool = NSAutoreleasePool::new(nil); + let () = msg_send![class!(NSWindow), setAllowsAutomaticWindowTabbing: NO]; + let mut style_mask; if let Some(titlebar) = titlebar.as_ref() { style_mask = NSWindowStyleMask::NSClosableWindowMask