Merge pull request #2477 from zjeffer/fix/urgent-icon

This commit is contained in:
Alexis Rouillard 2023-09-07 20:33:22 +02:00 committed by GitHub
commit 38ef38b72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -441,6 +441,13 @@ void Workspaces::sort_workspaces() {
}
std::string &Workspace::select_icon(std::map<std::string, std::string> &icons_map) {
if (is_urgent()) {
auto urgent_icon_it = icons_map.find("urgent");
if (urgent_icon_it != icons_map.end()) {
return urgent_icon_it->second;
}
}
if (active()) {
auto active_icon_it = icons_map.find("active");
if (active_icon_it != icons_map.end()) {