From 6633d815fd6dac987472bbcae8db0097678b6657 Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Sat, 29 Mar 2003 23:31:20 +0000 Subject: [PATCH] Fix repainting on windows (bug 199159) by making sure to set ConsumeNoDefault on the paint event. r/sr=roc, a=asa. --- view/src/nsViewManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view/src/nsViewManager.cpp b/view/src/nsViewManager.cpp index d8a22f3e64c..edfe268829c 100644 --- a/view/src/nsViewManager.cpp +++ b/view/src/nsViewManager.cpp @@ -1778,6 +1778,8 @@ NS_IMETHODIMP nsViewManager::DispatchEvent(nsGUIEvent *aEvent, nsEventStatus *aS if (!view || !mContext) break; + *aStatus = nsEventStatus_eConsumeNoDefault; + // The rect is in device units, and it's in the coordinate space of its // associated window. nsCOMPtr region = ((nsPaintEvent*)aEvent)->region;