mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 14:11:59 -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
|
||||
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;
|
||||
|
Reference in New Issue
Block a user