refactor: track focus chain
This commit is contained in:
parent
50367b96e3
commit
0943f131c2
4 changed files with 73 additions and 14 deletions
|
|
@ -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 };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue