diff --git a/widget/src/windows/nsWindow.cpp b/widget/src/windows/nsWindow.cpp index bd19686d43b..4da18e064ad 100644 --- a/widget/src/windows/nsWindow.cpp +++ b/widget/src/windows/nsWindow.cpp @@ -4521,11 +4521,11 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT #ifndef WINCE 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 // a MOVE message (besides, WM_MOUSELEAVE doesn't have the position // in lParam). - DispatchMouseEvent(NS_MOUSE_EXIT, wParam, MAXDWORD); + DispatchMouseEvent(NS_MOUSE_EXIT, wParam, MINLONG | MINSHORT); } break; #endif