From 5b5583ec0ad0297c47b236df5b8475abfb31bc65 Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Sun, 14 May 2000 03:44:17 +0000 Subject: [PATCH] debug code for myself --- view/src/nsViewManager2.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/view/src/nsViewManager2.cpp b/view/src/nsViewManager2.cpp index 27b5a181748..dcb103e4c57 100755 --- a/view/src/nsViewManager2.cpp +++ b/view/src/nsViewManager2.cpp @@ -1404,6 +1404,14 @@ NS_IMETHODIMP nsViewManager2::DispatchEvent(nsGUIEvent *aEvent, nsEventStatus *a NS_IMETHODIMP nsViewManager2::GrabMouseEvents(nsIView *aView, PRBool &aResult) { +#ifdef DEBUG_mjudge + if (aView) + { + printf("capturing mouse events for view %x\n",aView); + } + printf("removing mouse capture from view %x\n",mMouseGrabber); +#endif + mMouseGrabber = aView; aResult = PR_TRUE; return NS_OK;