mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-20 09:38:48 +03:00
rules: fix monitor rule with names
This commit is contained in:
parent
a663823af2
commit
0155b85950
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user