opt: avoid set invalid size

This commit is contained in:
DreamMaoMao 2025-04-10 12:04:48 +08:00
parent 5ae688eefb
commit 15e386db5a

View file

@ -4776,7 +4776,7 @@ void resize(Client *c, struct wlr_box geo, int interact) {
c, bbox); // 去掉这个推荐的窗口大小,因为有时推荐的窗口特别大导致平铺异常 c, bbox); // 去掉这个推荐的窗口大小,因为有时推荐的窗口特别大导致平铺异常
} }
if(c->geom.width <0 || c->geom.height <0) { if((int32_t)c->geom.width <0 || (int32_t)c->geom.height <0) {
return; return;
} }