Merge pull request #2156 from theRealCarneiro/master

Add persistent format-icon to wlr/workspaces
This commit is contained in:
Alex 2023-05-05 14:05:32 +02:00 committed by GitHub
commit 919ad0a8bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -495,6 +495,13 @@ auto Workspace::get_icon() -> std::string {
return named_icon_it->second; return named_icon_it->second;
} }
if (is_empty()) {
auto persistent_icon_it = icons_map_.find("persistent");
if (persistent_icon_it != icons_map_.end()) {
return persistent_icon_it->second;
}
}
auto default_icon_it = icons_map_.find("default"); auto default_icon_it = icons_map_.find("default");
if (default_icon_it != icons_map_.end()) { if (default_icon_it != icons_map_.end()) {
return default_icon_it->second; return default_icon_it->second;