fix someday
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-04-20 15:15:35 +09:00
commit 8870b3a0c5

View file

@ -1746,14 +1746,12 @@ static void clip(MwLL handle) {
for(i = arrlen(ws) - 2; i >= 0; i--) {
x += ws[i]->wayland.x;
y += ws[i]->wayland.y;
w = MIN(ws[i]->wayland.ww - ws[i]->wayland.x, w);
h = MIN(ws[i]->wayland.wh - ws[i]->wayland.y, h);
w = MIN(ws[i]->wayland.ww - MAX(-x, 0), w);
h = MIN(ws[i]->wayland.wh - MAX(-y, 0), h);
}
cx = -x;
cy = -y;
cx = MAX(cx, 0);
cy = MAX(cy, 0);
cx = MAX(-x, 0);
cy = MAX(-y, 0);
arrfree(ws);