fix: error clip width height

This commit is contained in:
DreamMaoMao 2025-06-14 19:52:10 +08:00
parent 1bbf6adbc9
commit e0c3101c0c

View file

@ -1221,7 +1221,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
clip_box->width =
clip_box->width -
(c->animation.current.x + c->animation.current.width -
c->mon->m.x - c->mon->m.width) +
c->mon->m.x - c->mon->m.width) -
c->bw;
}
@ -1235,7 +1235,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
clip_box->height =
clip_box->height -
(c->animation.current.y + c->animation.current.height -
c->mon->m.y - c->mon->m.height) +
c->mon->m.y - c->mon->m.height) -
c->bw;
}
}