Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
windows: Fix title bar not responsing (#31532)
张小白ba6b5a59f963
diff --git a/crates/gpui/src/platform/windows/events.rs b/crates/gpui/src/platform/windows/events.rsindex cf8edfdb132..dba88fba4ce 100644--- a/crates/gpui/src/platform/windows/events.rs+++ b/crates/gpui/src/platform/windows/events.rs@@ -1006,7 +1006,8 @@ fn handle_nc_mouse_down_msg(click_count,first_mouse: false,});- let handled = !func(input).propagate;+ let result = func(input.clone());+ let handled = !result.propagate || result.default_prevented;state_ptr.state.borrow_mut().callbacks.input = Some(func);if handled {