diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index 9f924450458bb328c13183116ba8f4b70445aa24..4101c0b4cf6049f8cbd60f280b8e9c9941685d4f 100644 --- a/crates/gpui/src/app.rs +++ b/crates/gpui/src/app.rs @@ -666,7 +666,7 @@ impl AppContext { .values() .filter_map(|window| { let window = window.as_ref()?; - (window.dirty || window.focus_invalidated).then_some(window.handle) + window.dirty.then_some(window.handle) }) .collect::>() { diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index d64feb56a446b9885b0ed6bae62a1cea1ffe2f47..8fd5305691d5b5f1c05b09609043287165d0b265 100644 --- a/crates/gpui/src/window.rs +++ b/crates/gpui/src/window.rs @@ -276,9 +276,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)] @@ -418,9 +415,6 @@ impl Window { focus: None, focus_enabled: true, pending_input: None, - - #[cfg(any(test, feature = "test-support"))] - focus_invalidated: false, } } } @@ -505,12 +499,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(); } @@ -932,11 +920,6 @@ impl<'a> WindowContext<'a> { self.window.dirty = 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();