From ca754f6bfb417a860d6a074081c25bae13299257 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 29 Jan 2026 15:50:23 +0000 Subject: [PATCH] matcher: fix matching in getSetting fixes #331 --- src/config/WallpaperMatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/WallpaperMatcher.cpp b/src/config/WallpaperMatcher.cpp index 3691816..3c67f36 100644 --- a/src/config/WallpaperMatcher.cpp +++ b/src/config/WallpaperMatcher.cpp @@ -47,7 +47,7 @@ bool CWallpaperMatcher::outputExists(const std::string_view& s) { std::optional> 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) {