Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix `handle_window_activation_effect` updating the wrong view
Antonio Scandurra2652f65bee7f
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rsindex 697d9276e5f..820a593e17c 100644--- a/crates/gpui/src/app.rs+++ b/crates/gpui/src/app.rs@@ -1858,7 +1858,7 @@ impl AppContext {if let Some(focused_id) = cx.window.focused_view_id {for view_id in cx.ancestors(focused_id).collect::<Vec<_>>() {- cx.update_any_view(focused_id, |view, cx| {+ cx.update_any_view(view_id, |view, cx| {if active {view.focus_in(focused_id, cx, view_id);} else {