Skip to content

Commit

Permalink
Merge pull request #2477 from zjeffer/fix/urgent-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays authored Sep 7, 2023
2 parents 80de22a + 6c3565c commit 38ef38b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/modules/hyprland/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 38ef38b

Please sign in to comment.