display active indicators for each open window of an app on the dock

This commit is contained in:
Ashley Wulber 2021-12-21 17:55:43 -05:00
parent b3ce9ada8c
commit a3349e673f
4 changed files with 28 additions and 10 deletions

View file

@ -167,7 +167,8 @@ fn main() {
if let Some((i, s)) = stack_active.iter().enumerate().find(|(_i, s)| s.0[0].description == cur_app_info.name()) {
println!("found active saved app {} at {}", s.0[0].name, i);
let active = stack_active.remove(i);
dock_obj.set_property("active", active.to_value()).expect("failed to update dock active apps")
dock_obj.set_property("active", active.to_value()).expect("failed to update dock active apps");
saved_app_model.items_changed(i.try_into().unwrap(), 0, 0);
}
}