diff options
-rw-r--r-- | cocoa/PlatCocoa.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index a4584528f..a3d5ac17b 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1109,8 +1109,7 @@ PRectangle Window::GetPosition() // NSView NSView* view = reinterpret_cast<NSView*>(idWin); win = [view window]; - rect = [view bounds]; - rect = [view convertRectToBase: rect]; + rect = [view convertRect: [view bounds] toView: nil]; rect.origin = [win convertBaseToScreen:rect.origin]; } else |