Merge pull request #4320 from LoricAndre/master

feat(hyprland/workspaces): add uniqueIcons option
This commit is contained in:
Alexis Rouillard
2026-07-04 01:12:05 +02:00
committed by GitHub
6 changed files with 26 additions and 11 deletions
+4 -1
View File
@@ -278,7 +278,10 @@ void Workspace::insertWindow(WindowCreationPayload create_window_payload) {
// If the vector contains the address, update the window representation, otherwise insert it
if (it != m_windowMap.end()) {
*it = repr;
} else {
} else if (!m_workspaceManager.uniqueIcons() || repr.repr_rewrite.empty() ||
std::ranges::find_if(m_windowMap, [&repr](const auto& window) {
return window.repr_rewrite == repr.repr_rewrite;
}) == m_windowMap.end()) {
m_windowMap.emplace_back(repr);
}
}