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: Drop input handler to avoid editor/project not being dropped (#18898)

Thorsten Ball9c54bd1bd4af
diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs
index 5f9ee43dec4..6d887f2b138 100644
--- a/crates/gpui/src/platform/mac/window.rs
+++ b/crates/gpui/src/platform/mac/window.rs
@@ -768,6 +768,7 @@ impl Drop for MacWindow {
unsafe {
this.native_window.setDelegate_(nil);
}
+ this.input_handler.take();
this.executor
.spawn(async move {
unsafe {