зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
029901ef1d
Коммит
d686bd3ae4
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче