Better fix for multiple focuses in one frame

This commit is contained in:
Conrad Irwin 2023-11-13 11:32:05 -07:00
parent 348760556a
commit 2625051f75
2 changed files with 11 additions and 10 deletions

View file

@ -389,10 +389,6 @@ impl<'a> WindowContext<'a> {
pub fn focus(&mut self, handle: &FocusHandle) {
let focus_id = handle.id;
if self.window.focus == Some(focus_id) {
return;
}
if self.window.last_blur.is_none() {
self.window.last_blur = Some(self.window.focus);
}