fix: error clip offset for clip_to_hide

This commit is contained in:
DreamMaoMao 2025-04-05 10:45:31 +08:00
parent 437141ff73
commit dfaab261c1

View file

@ -1049,7 +1049,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
c->mon->m.x + c->mon->m.width) { c->mon->m.x + c->mon->m.width) {
clip_box->width = clip_box->width - clip_box->width = clip_box->width -
(c->animation.current.x + c->animation.current.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;
} }
if (c->animation.current.y <= c->mon->m.y) { if (c->animation.current.y <= c->mon->m.y) {
@ -1060,7 +1060,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
c->mon->m.y + c->mon->m.height) { c->mon->m.y + c->mon->m.height) {
clip_box->height = clip_box->height - clip_box->height = clip_box->height -
(c->animation.current.y + c->animation.current.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;
} }
} }