Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove unnecessary `focus_invalidated` field (#7320)
Antonio Scandurra54aecd21ecc8
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rsindex 56d66f9b0b6..8d6f70f27e2 100644--- a/crates/gpui/src/app.rs+++ b/crates/gpui/src/app.rs@@ -658,7 +658,7 @@ impl AppContext {.values().filter_map(|window| {let window = window.as_ref()?;- (window.dirty.get() || window.focus_invalidated).then_some(window.handle)+ window.dirty.get().then_some(window.handle)}).collect::<Vec<_>>(){diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rsindex afc2235fe64..19ed1c90993 100644--- a/crates/gpui/src/window.rs+++ b/crates/gpui/src/window.rs@@ -280,9 +280,6 @@ pub struct Window {pub(crate) focus: Option<FocusId>,focus_enabled: bool,pending_input: Option<PendingInput>,-- #[cfg(any(test, feature = "test-support"))]- pub(crate) focus_invalidated: bool,}#[derive(Default, Debug)]@@ -451,9 +448,6 @@ impl Window {focus: None,focus_enabled: true,pending_input: None,-- #[cfg(any(test, feature = "test-support"))]- focus_invalidated: false,}}}@@ -538,12 +532,6 @@ impl<'a> WindowContext<'a> {.rendered_frame.dispatch_tree.clear_pending_keystrokes();-- #[cfg(any(test, feature = "test-support"))]- {- self.window.focus_invalidated = true;- }-self.refresh();}@@ -985,11 +973,6 @@ impl<'a> WindowContext<'a> {self.window.dirty.set(false);self.window.drawing = true;- #[cfg(any(test, feature = "test-support"))]- {- self.window.focus_invalidated = false;- }-if let Some(requested_handler) = self.window.rendered_frame.requested_input_handler.as_mut(){let input_handler = self.window.platform_window.take_input_handler();