Closed 10n37 closed 1 year ago
The window position is fetched directly from macOS, so there's nothing we can do about it. You'll have to report this to Apple.
I Found the missing piece
display.bounds.y
is 60
So i should include display bound in my calculations
Environment
OS: MacOS Monterey 12.6.3 PC: Second full-hd 120hz monitor connected to MacBook air with 2k display via dock.
Problem
Window real bounds is:
{x: 464, y: 317, width: 762, height: 763}
active-win bounds is:
{ y: 257, width: 762, height: 763, x: -1456 }
I can calc the X position:
And i can calc Y position:
I always need to plus magic +60 number to get correct Y axis position. Always, in any window position.
How to fix it, or how to understand what this magic number 60 is?