Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
windows: Fix client area is treated as non-client area when window is fullscreen (#32916)
张小白4da58188fb39
diff --git a/crates/gpui/src/platform/windows/events.rs b/crates/gpui/src/platform/windows/events.rsindex 5075997f775..67859a980b4 100644--- a/crates/gpui/src/platform/windows/events.rs+++ b/crates/gpui/src/platform/windows/events.rs@@ -884,7 +884,7 @@ fn handle_hit_test_msg(lparam: LPARAM,state_ptr: Rc<WindowsWindowStatePtr>,) -> Option<isize> {- if !state_ptr.is_movable {+ if !state_ptr.is_movable || state_ptr.state.borrow().is_fullscreen() {return None;}