Invalidate GPUI views regardless of draw phase (#24164)

We think this could fix issues around view invalidation during focus
handling.

I want to run CI on this and see.

cc @mikayla-maki @maxbrunsfeld 

Release Notes:

- N/A
This commit is contained in:
Nathan Sobo 2025-02-03 22:44:07 -07:00 committed by GitHub
parent ea66a54cf8
commit 8bce896395
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,9 +107,9 @@ impl WindowInvalidator {
pub fn invalidate_view(&self, entity: EntityId, cx: &mut App) -> bool {
let mut inner = self.inner.borrow_mut();
inner.dirty_views.insert(entity);
if inner.draw_phase == DrawPhase::None {
inner.dirty = true;
inner.dirty_views.insert(entity);
cx.push_effect(Effect::Notify { emitter: entity });
true
} else {