Fix handle_window_activation_effect updating the wrong view

This commit is contained in:
Antonio Scandurra 2023-04-14 12:33:13 +02:00
parent 98dce89379
commit 2652f65bee

View file

@ -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 {