1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 14:21:03 +02:00

fix(workspaces): incorrectly checking focus using name_map value

Fixes #639
This commit is contained in:
Jake Stanger 2024-08-11 16:43:41 +01:00
parent 80729a6cfa
commit 82a6660c85
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -184,7 +184,7 @@ fn find_btn(map: &HashMap<i64, Button>, workspace: &Workspace) -> Option<Button>
map.get(&workspace.id)
.or_else(|| {
map.values()
.find(|btn| btn.label().unwrap_or_default() == workspace.name)
.find(|&btn| btn.widget_name() == workspace.name)
})
.cloned()
}