Add urgent icon

Fixes #2476
pull/2477/head
zjeffer 2023-09-07 19:33:35 +02:00
parent 80de22a159
commit 6c3565c520
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) { 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()) { if (active()) {
auto active_icon_it = icons_map.find("active"); auto active_icon_it = icons_map.find("active");
if (active_icon_it != icons_map.end()) { if (active_icon_it != icons_map.end()) {