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 {