diff --git a/widget/src/windows/nsWindow.cpp b/widget/src/windows/nsWindow.cpp index fb3ef4d52315..4eb4392c3458 100644 --- a/widget/src/windows/nsWindow.cpp +++ b/widget/src/windows/nsWindow.cpp @@ -2960,6 +2960,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT static PRBool getWheelInfo = PR_TRUE; *aRetValue = 0; PRBool isMozWindowTakingFocus = PR_TRUE; + nsPaletteInfo palInfo; // Uncomment this to see all windows messages // first param showss all events @@ -3403,7 +3404,6 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT ::GetClassName((HWND)wParam, className, 19); if(strcmp(className, WindowClass())) isMozWindowTakingFocus = PR_FALSE; - if(gJustGotDeactivate) { gJustGotDeactivate = PR_FALSE; result = DispatchFocus(NS_DEACTIVATE, isMozWindowTakingFocus); @@ -3520,7 +3520,6 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT // fall thru... case WM_QUERYNEWPALETTE: // this window is about to become active -#if 0 mContext->GetPaletteInfo(palInfo); if (palInfo.isPaletteDevice && palInfo.palette) { HDC hDC = ::GetDC(mWnd); @@ -3539,7 +3538,6 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *aRetValue = TRUE; } result = PR_TRUE; -#endif break; case WM_INPUTLANGCHANGEREQUEST: