macOS: Disable fullscreen window tabbing (take 2) (#26774)

Smit Barmase created

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.

Change summary

crates/gpui/src/platform/mac/window.rs | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

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