From be405fe0d110fdf622ef83a5a7471b7ff7790f9b Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Thu, 28 Apr 2005 22:03:28 +0000 Subject: [PATCH] Bug 290673. Restore event->point after dispatching to views, in case someone wants to use it later (Windows widget appears to). r+sr=bzbarsky,a=asa git-svn-id: svn://10.0.0.236/trunk@172837 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/view/src/nsViewManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/view/src/nsViewManager.cpp b/mozilla/view/src/nsViewManager.cpp index abb04399ef5..5ed3dfee0f1 100644 --- a/mozilla/view/src/nsViewManager.cpp +++ b/mozilla/view/src/nsViewManager.cpp @@ -2512,6 +2512,9 @@ nsEventStatus nsViewManager::HandleEvent(nsView* aView, nsGUIEvent* aEvent, PRBo // we'll crash in the next iteration. Oh well. The old code would have crashed too. } } + // Need to restore the event point here because someone may use it later. + // In particular Windows seems to need this. + aEvent->point = pt; PL_FreeArenaPool(&displayArena); PL_FinishArenaPool(&displayArena);