From 2652f65bee7f5e9f44144de03334cfb35fab382d Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 14 Apr 2023 12:33:13 +0200 Subject: [PATCH] Fix `handle_window_activation_effect` updating the wrong view --- crates/gpui/src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index 697d9276e5ff6a82b0eef296e26d47c7ee6fb351..820a593e17c31ffe6faeb973a59b5f9e950ba3fe 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::>() { - 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 {