From 19f668f4f6cc03f9e6a8db3569a22b2fdd9ad182 Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Tue, 8 Jan 2013 18:09:07 -0800 Subject: [PATCH] use the [CPPlatformWindow primaryPlatformWindow] to position the tooltips. --- AppKit/_CPToolTip.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/_CPToolTip.j b/AppKit/_CPToolTip.j index c67bf4b4c..b0bfb1f9c 100644 --- a/AppKit/_CPToolTip.j +++ b/AppKit/_CPToolTip.j @@ -197,7 +197,7 @@ var _CPToolTipHeight = 24.0, - (void)showToolTip { var mousePosition = [[CPApp currentEvent] globalLocation], - nativeRect = [[[CPApp mainWindow] platformWindow] nativeContentRect]; + nativeRect = [[CPPlatformWindow primaryPlatformWindow] nativeContentRect]; mousePosition.y += 20;