From 54407e53b58f0ed9ffa3610d92e3556d74441470 Mon Sep 17 00:00:00 2001 From: ivanpasq Date: Thu, 30 Oct 2025 18:35:56 +0100 Subject: [PATCH] fix: full title bar is now draggable --- crates/gpui/src/platform/mac/window.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index 53a5688ad6b78cda8f610e4acc810a7df58cf47b..23752fc53edbc1062db19caf13c5c65fc282ca87 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -1543,6 +1543,17 @@ impl PlatformWindow for MacWindow { }) .detach(); } + + fn start_window_move(&self) { + let this = self.0.lock(); + let window = this.native_window; + + unsafe { + let app = NSApplication::sharedApplication(nil); + let mut event: id = msg_send![app, currentEvent]; + let _: () = msg_send![window, performWindowDragWithEvent: event]; + } + } } impl rwh::HasWindowHandle for MacWindow {