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:
parent
ea66a54cf8
commit
8bce896395
1 changed files with 1 additions and 1 deletions
|
@ -107,9 +107,9 @@ impl WindowInvalidator {
|
||||||
|
|
||||||
pub fn invalidate_view(&self, entity: EntityId, cx: &mut App) -> bool {
|
pub fn invalidate_view(&self, entity: EntityId, cx: &mut App) -> bool {
|
||||||
let mut inner = self.inner.borrow_mut();
|
let mut inner = self.inner.borrow_mut();
|
||||||
|
inner.dirty_views.insert(entity);
|
||||||
if inner.draw_phase == DrawPhase::None {
|
if inner.draw_phase == DrawPhase::None {
|
||||||
inner.dirty = true;
|
inner.dirty = true;
|
||||||
inner.dirty_views.insert(entity);
|
|
||||||
cx.push_effect(Effect::Notify { emitter: entity });
|
cx.push_effect(Effect::Notify { emitter: entity });
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue