Fix for Win32 part of bug 321098: onmouseover alert() causing multiple stacked alert dialogs

r+sr=roc
This commit is contained in:
emaijala%kolumbus.fi 2006-01-09 17:23:20 +00:00
Родитель 349a000e0f
Коммит 7684d5f656
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -6064,8 +6064,6 @@ PRBool nsWindow::DispatchMouseEvent(PRUint32 aEventType, WPARAM wParam, LPARAM l
// call the event callback
if (nsnull != mEventCallback) {
result = DispatchWindowEvent(&event);
if (aEventType == NS_MOUSE_MOVE) {
MouseTrailer::GetSingleton().Disable();
if (!mIsInMouseCapture) {
@ -6096,6 +6094,8 @@ PRBool nsWindow::DispatchMouseEvent(PRUint32 aEventType, WPARAM wParam, LPARAM l
}
}
result = DispatchWindowEvent(&event);
// Release the widget with NS_IF_RELEASE() just in case
// the context menu key code in nsEventListenerManager::HandleEvent()
// released it already.