Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

macOS: Disable automatic window tabbing in fullscreen mode (#26600)

Stanislav Alekseeve842b4eade36
diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs
index 5046a9d0412..5c7d9e5e93c 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 = {