summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-05-03 14:58:48 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-05-03 14:58:51 +0100
commit0155b85950fd360011b84fcb3460248264191ee2 (patch)
tree8026b3e7e730fcf8a7cf433bcc25c10950207c40 /src/events/Windows.cpp
parenta663823af2ae6ef1a48719f1f2f03bdce1bc09d9 (diff)
rules: fix monitor rule with names
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 9eb44822..ad0fd08c 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -117,7 +117,7 @@ void Events::listener_mapWindow(void* owner, void* data) {
for (auto& r : WINDOWRULES) {
if (r.szRule.find("monitor") == 0) {
try {
- const auto MONITORSTR = r.szRule.substr(r.szRule.find(' '));
+ const auto MONITORSTR = removeBeginEndSpacesTabs(r.szRule.substr(r.szRule.find(' ')));
if (MONITORSTR == "unset") {
PWINDOW->m_iMonitorID = PMONITOR->ID;