rules: fix monitor rule with names

This commit is contained in:
vaxerski 2023-05-03 14:58:48 +01:00
parent a663823af2
commit 0155b85950

View file

@ -117,7 +117,7 @@ void Events::listener_mapWindow(void* owner, void* data) {
for (auto& r : WINDOWRULES) { for (auto& r : WINDOWRULES) {
if (r.szRule.find("monitor") == 0) { if (r.szRule.find("monitor") == 0) {
try { try {
const auto MONITORSTR = r.szRule.substr(r.szRule.find(' ')); const auto MONITORSTR = removeBeginEndSpacesTabs(r.szRule.substr(r.szRule.find(' ')));
if (MONITORSTR == "unset") { if (MONITORSTR == "unset") {
PWINDOW->m_iMonitorID = PMONITOR->ID; PWINDOW->m_iMonitorID = PMONITOR->ID;