diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index 56d66f9b0b..8d6f70f27e 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::>() { diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index afc2235fe6..19ed1c9099 100644 --- a/crates/gpui/src/window.rs +++ b/crates/gpui/src/window.rs @@ -280,9 +280,6 @@ pub struct Window { pub(crate) focus: Option, focus_enabled: bool, pending_input: Option, - - #[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();