refactor: track focus chain

This commit is contained in:
Ashley Wulber 2025-07-16 13:48:08 -04:00 committed by Michael Murphy
parent 50367b96e3
commit 0943f131c2
4 changed files with 73 additions and 14 deletions

View file

@ -548,8 +548,9 @@ impl<App: Application> ApplicationExt for App {
let show_context = core.window.show_context;
let nav_bar_active = core.nav_bar_active();
let focused = core
.focused_window()
.is_some_and(|i| Some(i) == self.core().main_window_id());
.focus_chain()
.iter()
.any(|i| Some(*i) == self.core().main_window_id());
let border_padding = if sharp_corners { 8 } else { 7 };