mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 22:51:58 -07:00
monitor: bring back old description behavior
this makes description match the beginning again. Fixes #8756
This commit is contained in:
@@ -412,7 +412,7 @@ bool CMonitor::matchesStaticSelector(const std::string& selector) const {
|
|||||||
// match by description
|
// match by description
|
||||||
const auto DESCRIPTIONSELECTOR = selector.substr(5);
|
const auto DESCRIPTIONSELECTOR = selector.substr(5);
|
||||||
|
|
||||||
return DESCRIPTIONSELECTOR == szShortDescription || DESCRIPTIONSELECTOR == szDescription;
|
return szDescription.starts_with(DESCRIPTIONSELECTOR) || szShortDescription.starts_with(DESCRIPTIONSELECTOR);
|
||||||
} else {
|
} else {
|
||||||
// match by selector
|
// match by selector
|
||||||
return szName == selector;
|
return szName == selector;
|
||||||
|
Reference in New Issue
Block a user