fix: full title bar is now draggable

ivanpasq created

Change summary

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

Detailed changes

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 {