diff options
author | vaxerski <[email protected]> | 2024-12-23 21:14:54 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2024-12-23 21:17:38 +0000 |
commit | 2e2e2e2cad97eb017ab02f8a67b751e0abe3bb72 (patch) | |
tree | 4f1e5641125420e8880d35655c2a2be2b323b080 /src | |
parent | 68a5842f06e33d381e9afbf9c9492ba5a7aa2d0f (diff) | |
download | Hyprland-2e2e2e2cad97eb017ab02f8a67b751e0abe3bb72.tar.gz Hyprland-2e2e2e2cad97eb017ab02f8a67b751e0abe3bb72.zip |
monitor: bring back old description behavior
this makes description match the beginning again. Fixes #8756
Diffstat (limited to 'src')
-rw-r--r-- | src/helpers/Monitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 33ec3abe..89a833d4 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -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; |