fix: avoid use null mon when session not active

This commit is contained in:
DreamMaoMao
2026-01-01 14:48:49 +08:00
parent ed557fa5aa
commit 23d550e04d
3 changed files with 7 additions and 2 deletions

View File

@@ -1353,7 +1353,8 @@ void applyrules(Client *c) {
}
}
set_size_per(mon, c);
if (mon)
set_size_per(mon, c);
// if no geom rule hit and is normal winodw, use the center pos and record
// the hit size