mac: getXYImpl should also flip whatever is given to it

This commit is contained in:
IoIxD 2026-04-14 18:28:33 -07:00
commit a7d790698f

View file

@ -793,7 +793,12 @@ static void MwLLGetXYWHImpl(MwLL handle, int* x, int* y, unsigned int* w,
} else {
frame = [self->window frame];
}
frame = rectFlip(frame);
if(!self->parent) {
frame = rectFlip(frame);
} else {
frame = localRectFlip(frame, self->parent->cocoa.real->view);
}
*x = frame.origin.x;
*y = frame.origin.y;