Bug #176518. Fix focus on inital startup. Not part of the default build.
This commit is contained in:
Родитель
74204ad075
Коммит
0209f9a3a1
|
@ -1414,6 +1414,14 @@ nsWindow::OnContainerFocusInEvent(GtkWidget *aWidget, GdkEventFocus *aEvent)
|
|||
// dispatch a got focus event
|
||||
DispatchGotFocusEvent();
|
||||
|
||||
// send the activate event if it wasn't already sent via any
|
||||
// SetFocus() calls that were the result of the GOTFOCUS event
|
||||
// above.
|
||||
if (gJustGotActivate) {
|
||||
gJustGotActivate = PR_FALSE;
|
||||
DispatchActivateEvent();
|
||||
}
|
||||
|
||||
#ifdef USE_XIM
|
||||
nsWindow * aTmpWindow;
|
||||
aTmpWindow = this;
|
||||
|
|
Загрузка…
Ссылка в новой задаче