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
Родитель 029901ef1d
Коммит d686bd3ae4
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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;