Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Tell OS about window title
Juliae56dfd9177d5
diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rsindex e67aa25e136..50e0de216c5 100644--- a/crates/gpui/src/platform/mac/window.rs+++ b/crates/gpui/src/platform/mac/window.rs@@ -19,7 +19,7 @@ use cocoa::{appkit::{CGPoint, NSApplication, NSBackingStoreBuffered, NSScreen, NSView, NSViewHeightSizable,NSViewWidthSizable, NSWindow, NSWindowButton, NSWindowCollectionBehavior,- NSWindowStyleMask,+ NSWindowStyleMask, NSWindowTitleVisibility,},base::{id, nil},foundation::{NSAutoreleasePool, NSInteger, NSPoint, NSRect, NSSize, NSString, NSUInteger},@@ -536,6 +536,7 @@ impl Window {.map_or(true, |titlebar| titlebar.appears_transparent){native_window.setTitlebarAppearsTransparent_(YES);+ native_window.setTitleVisibility_(NSWindowTitleVisibility::NSWindowTitleHidden);}native_view.setAutoresizingMask_(NSViewWidthSizable | NSViewHeightSizable);@@ -734,7 +735,8 @@ impl platform::Window for Window {let app = NSApplication::sharedApplication(nil);let window = self.0.borrow().native_window;let title = ns_string(title);- msg_send![app, changeWindowsItem:window title:title filename:false]+ let _: () = msg_send![app, changeWindowsItem:window title:title filename:false];+ let _: () = msg_send![window, setTitle: title];}}