fix:The left and top shear coordinates of the scroll layout are abnormal

This commit is contained in:
DreamMaoMao 2025-03-31 11:24:52 +08:00
parent 6afdacfd6c
commit 44957e72b4

View file

@ -1022,7 +1022,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
// // make tagout tagin animations not visible in other monitors
if (ISTILED(c)) {
if (c->animation.current.x <= c->mon->m.x) {
offsetx = c->mon->m.x - c->animation.current.x;
offsetx = c->mon->m.x - c->animation.current.x - c->bw;
clip_box->x = clip_box->x + offsetx;
clip_box->width = clip_box->width - offsetx;
} else if (c->animation.current.x + c->animation.current.width >=
@ -1033,7 +1033,7 @@ struct uvec2 clip_to_hide(Client *c, struct wlr_box *clip_box) {
}
if (c->animation.current.y <= c->mon->m.y) {
offsety = c->mon->m.y - c->animation.current.y;
offsety = c->mon->m.y - c->animation.current.y - c->bw;
clip_box->y = clip_box->y + offsety;
clip_box->height = clip_box->height - offsety;
} else if (c->animation.current.y + c->animation.current.height >=