mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-24 19:49:48 +01:00
monitor: bring back old description behavior
this makes description match the beginning again. Fixes #8756
This commit is contained in:
parent
68a5842f06
commit
2e2e2e2cad
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ bool CMonitor::matchesStaticSelector(const std::string& selector) const {
|
|||
// match by description
|
||||
const auto DESCRIPTIONSELECTOR = selector.substr(5);
|
||||
|
||||
return DESCRIPTIONSELECTOR == szShortDescription || DESCRIPTIONSELECTOR == szDescription;
|
||||
return szDescription.starts_with(DESCRIPTIONSELECTOR) || szShortDescription.starts_with(DESCRIPTIONSELECTOR);
|
||||
} else {
|
||||
// match by selector
|
||||
return szName == selector;
|
||||
|
|
Loading…
Reference in a new issue