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.

gpui: Allow OS caption/buttons for custom Windows titlebar (#48330)

Conashimifb0af505538a
diff --git a/crates/gpui/src/platform/windows/events.rs b/crates/gpui/src/platform/windows/events.rs
index f708c8ddb9c..45bd3320c06 100644
--- a/crates/gpui/src/platform/windows/events.rs
+++ b/crates/gpui/src/platform/windows/events.rs
@@ -958,8 +958,7 @@ impl WindowsWindowInner {
click_count,
first_mouse: false,
});
- let result = func(input);
- let handled = !result.propagate || result.default_prevented;
+ let handled = !func(input).propagate;
self.state.callbacks.input.set(Some(func));
if handled {