mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 05:31:59 -07:00
config: Fix matching monitor by description to allow space prefix (#9788)
This commit is contained in:
@@ -881,7 +881,7 @@ bool CMonitor::isMirror() {
|
||||
bool CMonitor::matchesStaticSelector(const std::string& selector) const {
|
||||
if (selector.starts_with("desc:")) {
|
||||
// match by description
|
||||
const auto DESCRIPTIONSELECTOR = selector.substr(5);
|
||||
const auto DESCRIPTIONSELECTOR = trim(selector.substr(5));
|
||||
|
||||
return szDescription.starts_with(DESCRIPTIONSELECTOR) || szShortDescription.starts_with(DESCRIPTIONSELECTOR);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user