mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2026-05-09 01:58:17 +02:00
match hl
This commit is contained in:
parent
9679074aa9
commit
8422bc9b38
1 changed files with 2 additions and 2 deletions
|
|
@ -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 && m.desc != monDesc)
|
||||
if (m.name != monName && !m.desc.starts_with(monDesc))
|
||||
continue;
|
||||
|
||||
for (const auto& s : m_settings) {
|
||||
|
|
@ -65,7 +65,7 @@ std::optional<CWallpaperMatcher::rw<const CConfigManager::SSetting>> CWallpaperM
|
|||
std::optional<CWallpaperMatcher::rw<const CConfigManager::SSetting>> CWallpaperMatcher::matchSetting(const std::string_view& monName, const std::string_view& monDesc) {
|
||||
// match explicit
|
||||
for (const auto& s : m_settings) {
|
||||
if (s.monitor != monName && s.monitor != "desc:"s + std::string{monDesc})
|
||||
if (s.monitor != monName && !("desc:"s + std::string{monDesc}).starts_with(s.monitor))
|
||||
continue;
|
||||
return s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue