From 14959661fdbf687e6b7de2d8272342a2f0a5161e Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Tue, 20 Jun 2006 16:52:31 +0000 Subject: [PATCH] fix cursor and status bar flickering if window opened underneath mouse. b=336472 r=mento git-svn-id: svn://10.0.0.236/trunk@200433 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/cocoa/nsChildView.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/widget/src/cocoa/nsChildView.mm b/mozilla/widget/src/cocoa/nsChildView.mm index f791fbb5233..acddf61d871 100644 --- a/mozilla/widget/src/cocoa/nsChildView.mm +++ b/mozilla/widget/src/cocoa/nsChildView.mm @@ -2617,6 +2617,13 @@ nsChildView::GetThebesSurface() [view mouseMoved: theEvent]; return; } + + // If we're passing handling this mouse moved event, we should be the last + // view entered. If that isn't the case, the mouse probably started over our + // view and thus we need to send a mouse entered event. + if (sLastViewEntered != self) + [self mouseEntered:nil]; + // check if we are in a hand scroll or if the user // has command and alt held down; if so, we do not want // gecko messing with the cursor.