mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-19 15:18:40 +01:00
fix(bar): only indicate focused window on stack
This commit is contained in:
1 parent
26f90cc9ee
commit
64382b18c1
1 file changed
+2
-1
@@ -368,9 +368,10 @@ impl BarWidget for Komorebi {
|
||||
.focused_window_idx;
|
||||
|
||||
let iter = titles.iter().zip(icons.iter());
|
||||
let len = iter.len();
|
||||
|
||||
for (i, (title, icon)) in iter.enumerate() {
|
||||
let selected = i == focused_window_idx;
|
||||
let selected = i == focused_window_idx && len != 1;
|
||||
|
||||
if SelectableFrame::new(selected)
|
||||
.show(ui, |ui| {
|
||||
|
||||
Reference in new issue
Block a user