core/desktopentry: lookup wm class in nodisplay entries

This commit is contained in:
outfoxxed 2025-07-19 14:26:18 -07:00
parent 759bd721df
commit fcffbbced8
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -389,7 +389,7 @@ DesktopEntry* DesktopEntryManager::byId(const QString& id) {
DesktopEntry* DesktopEntryManager::heuristicLookup(const QString& name) { DesktopEntry* DesktopEntryManager::heuristicLookup(const QString& name) {
if (auto* entry = DesktopEntryManager::byId(name)) return entry; if (auto* entry = DesktopEntryManager::byId(name)) return entry;
auto& list = this->mApplications.valueList(); auto list = this->desktopEntries.values();
auto iter = std::ranges::find_if(list, [&](const DesktopEntry* entry) { auto iter = std::ranges::find_if(list, [&](const DesktopEntry* entry) {
return name == entry->mStartupClass; return name == entry->mStartupClass;