fix: avoid use null mon when session not active

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

View file

@ -1360,7 +1360,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