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
authorjoshmoz@gmail.com
Fri, 04 Apr 2008 16:17:36 -0700
changeset 13927 e92e7ba5ae18bdf9eccd8993675fca20648e1d86
parent 13926 4de99d29f3911a11035fed931cd2715b92a7e1fd
child 13928 3ce6dfc190bed1a0b0237221e8f39366935dc720
push id6
push userjorendorff@mozilla.com
push dateMon, 07 Apr 2008 22:38:53 +0000
treeherdermozilla-central@7531959482c7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmichaud, vlad
bugs425259
milestone1.9pre
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
--- a/widget/src/cocoa/nsChildView.mm
+++ b/widget/src/cocoa/nsChildView.mm
@@ -2959,17 +2959,17 @@ static nsEventStatus SendGeckoMouseEnter
     mouseEventIsOverRollupWidget = nsCocoaUtils::IsEventOverWindow(theEvent, popupWindow);
   }
 
   if (![NSApp isActive] && !mouseEventIsOverRollupWidget) {
     if (sLastViewEntered) {
       nsIWidget* lastViewEnteredWidget = [(NSView<mozView>*)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;
   }
 
   if (![self ensureCorrectMouseEventTarget:theEvent])
     return;