From 7876bbcfce111b41ec8ce9ab2644fafa36533dbb Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Thu, 6 Aug 1998 17:23:49 +0000 Subject: [PATCH] Commented out the FOCUS event cases, it cleared up several crashes It's unclear whether we need to notified of these events. git-svn-id: svn://10.0.0.236/trunk@7440 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/windows/nsWindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/widget/src/windows/nsWindow.cpp b/mozilla/widget/src/windows/nsWindow.cpp index cfcc6232501..6dc03da8a5d 100644 --- a/mozilla/widget/src/windows/nsWindow.cpp +++ b/mozilla/widget/src/windows/nsWindow.cpp @@ -1509,13 +1509,15 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT result = PR_TRUE; break; - case WM_SETFOCUS: + // Commenting these fixes several crashes, + // but it is unclear whether we need these events or not + /*case WM_SETFOCUS: result = DispatchFocus(NS_GOTFOCUS); break; case WM_KILLFOCUS: result = DispatchFocus(NS_LOSTFOCUS); - break; + break;*/ case WM_WINDOWPOSCHANGED: {