From ba8d4dae1f40330032269ecc8ff30f048d1897cc Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Sat, 8 Jul 2006 12:32:40 +0000 Subject: [PATCH] Mouse exit should not generate spurious mouse move event b=319099 r=ere sr=roc --- widget/src/windows/nsWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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