fix: cransh in disable monitor when use scratchpad

This commit is contained in:
DreamMaoMao 2026-05-19 13:59:38 +08:00
parent a184b37a76
commit f3d0c18d19
3 changed files with 10 additions and 2 deletions

View file

@ -6411,7 +6411,8 @@ void updatemons(struct wl_listener *listener, void *data) {
c->geom.x += mon_pos_offsetx;
c->geom.y += mon_pos_offsety;
c->float_geom = c->geom;
resize(c, c->geom, 1);
if (VISIBLEON(c, m))
resize(c, c->geom, 1);
}
// restore window to old monitor