From 5c101ba162e0729331f0a0b71e4fa4093a3e48be Mon Sep 17 00:00:00 2001 From: "joshmoz@gmail.com" Date: Fri, 4 Apr 2008 16:17:36 -0700 Subject: [PATCH] fix exit event on leaving the app so it doesn't get turned into a move event and incorrectly put up tooltips. b=425259 r=smichaud sr=vlad --- widget/src/cocoa/nsChildView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/cocoa/nsChildView.mm b/widget/src/cocoa/nsChildView.mm index d52de88b2fc..7a3dc8d1856 100644 --- a/widget/src/cocoa/nsChildView.mm +++ b/widget/src/cocoa/nsChildView.mm @@ -2964,7 +2964,7 @@ static nsEventStatus SendGeckoMouseEnterOrExitEvent(PRBool isTrusted, nsIWidget* lastViewEnteredWidget = [(NSView*)sLastViewEntered widget]; NSPoint exitEventLocation = [sLastViewEntered convertPoint:windowEventLocation fromView:nil]; SendGeckoMouseEnterOrExitEvent(PR_TRUE, NS_MOUSE_EXIT, lastViewEnteredWidget, nsMouseEvent::eReal, - &exitEventLocation, nsMouseEvent::eChild); + &exitEventLocation, nsMouseEvent::eTopLevel); sLastViewEntered = nil; } return;