diff --git a/crates/ui-egui/src/doc_windows.rs b/crates/ui-egui/src/doc_windows.rs index 88ba3967a..bc4ad064e 100644 --- a/crates/ui-egui/src/doc_windows.rs +++ b/crates/ui-egui/src/doc_windows.rs @@ -141,7 +141,6 @@ impl DocWindows { let ctx = ui.ctx().clone(); self.sync(app, &ctx); let focused = self.list.active().and_then(|id| self.list.get(id).copied()); - app.focus_window = focused; let titles: std::collections::HashMap = self.list.iter().map(|(_, w)| (*w, window_title(app, *w))).collect(); let base = &self.base; // The window a command run in some window's UI activated (File › New, Switch Windows, a close). @@ -189,7 +188,6 @@ impl DocWindows { app.enter_window(target); } self.sync(app, &ctx); - app.focus_window = self.list.active().and_then(|id| self.list.get(id).copied()); } /// A window's close button. Returns the window to bring forward when the close needs an diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 53bb7a95d..9f163d052 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -374,8 +374,6 @@ pub struct SheetApp { /// tests, embedding hosts) one window shows the active workbook window, and its close button /// quits. pub native_windows: bool, - /// The native window that has focus, which menu commands and screenshots go to. - pub(crate) focus_window: Option, /// The update check, the startup prompt and a running self-update (desktop only). #[cfg(not(target_arch = "wasm32"))] updates_rt: updates_ui::Runtime, @@ -436,7 +434,6 @@ impl SheetApp { ui_window: None, parked: HashMap::new(), native_windows: false, - focus_window: None, #[cfg(not(target_arch = "wasm32"))] updates_rt: Default::default(), }