matcher: fix matching in getSetting

fixes #331
This commit is contained in:
Vaxry 2026-01-29 15:50:23 +00:00
parent a69c8d7f19
commit ca754f6bfb
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -47,7 +47,7 @@ bool CWallpaperMatcher::outputExists(const std::string_view& s) {
std::optional<CWallpaperMatcher::rw<const CConfigManager::SSetting>> CWallpaperMatcher::getSetting(const std::string_view& monName, const std::string_view& monDesc) {
for (const auto& m : m_monitorStates) {
if (m.name != monName && (monDesc.empty() || !m.desc.starts_with(monDesc)))
if (m.name != monName)
continue;
for (const auto& s : m_settings) {