Mouse exit should not generate spurious mouse move event b=319099 r=ere sr=roc

This commit is contained in:
neil%parkwaycc.co.uk 2006-07-08 12:32:40 +00:00
Родитель 5f427d28e7
Коммит ba8d4dae1f
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -4521,11 +4521,11 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
#ifndef WINCE #ifndef WINCE
case WM_MOUSELEAVE: case WM_MOUSELEAVE:
{ {
// We use MAXDWORD as the mouse position to make sure // We use MINLONG | MINSHORT as the mouse position to make sure
// EventStateManager doesn't convert this EXIT message to // EventStateManager doesn't convert this EXIT message to
// a MOVE message (besides, WM_MOUSELEAVE doesn't have the position // a MOVE message (besides, WM_MOUSELEAVE doesn't have the position
// in lParam). // in lParam).
DispatchMouseEvent(NS_MOUSE_EXIT, wParam, MAXDWORD); DispatchMouseEvent(NS_MOUSE_EXIT, wParam, MINLONG | MINSHORT);
} }
break; break;
#endif #endif