Fix for Bug 372177: No focus event fired when a window "gets focus" because another one has been minimized

Patch by Oliver Yeoh
r=emaijala
sr=roc
This commit is contained in:
emaijala%kolumbus.fi 2007-03-10 19:08:21 +00:00
parent 029901ef1d
commit d686bd3ae4

View File

@ -4872,7 +4872,12 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
ActivateKeyboardLayout(mLastKeyboardLayout, 0);
}
result = PR_TRUE;
// XXX We want DefWindowProc processing when switching between Mozilla
// windows. Otherwise, we might receive a WM_ACTIVATE without a
// following WM_SETFOCUS. Leverage on an undocumented finding where
// lParam is always NULL when switching between windows of different
// processes.
result = (HWND)lParam == NULL;
}
break;