From 5df43be11fe8bfd13b4f335d64900324e74ce302 Mon Sep 17 00:00:00 2001 From: theRealCarneiro Date: Fri, 5 May 2023 08:52:37 -0300 Subject: [PATCH] add persistent format-icon --- src/modules/wlr/workspace_manager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/wlr/workspace_manager.cpp b/src/modules/wlr/workspace_manager.cpp index c940b865..0b1dc72c 100644 --- a/src/modules/wlr/workspace_manager.cpp +++ b/src/modules/wlr/workspace_manager.cpp @@ -495,6 +495,13 @@ auto Workspace::get_icon() -> std::string { 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"); if (default_icon_it != icons_map_.end()) { return default_icon_it->second;