mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-19 06:59:56 -05:00
opt: avoid set invalid size
This commit is contained in:
parent
5ae688eefb
commit
15e386db5a
1 changed files with 1 additions and 1 deletions
2
maomao.c
2
maomao.c
|
|
@ -4776,7 +4776,7 @@ void resize(Client *c, struct wlr_box geo, int interact) {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue