Browse Source
WindowBaseImpl::CreateNSWindow anchors the new NSWindow's content rect to the primary screen's frame.origin. The primary screen is at Cocoa (0,0) on a healthy Mac, but can be offset (often negative) while the display server is mid-reconfiguration -- e.g. CGMainDisplayID() briefly returns 0 after wake-from-sleep -- or on multi-monitor layouts where the primary is not at the origin. Anchoring keeps the window on a real screen so it is positioned on-screen and its flipped Position lands inside a Screen.Bounds. See #18895. Co-authored-by: Cursor <cursoragent@cursor.com>pull/21543/head
1 changed files with 15 additions and 2 deletions
Loading…
Reference in new issue