Bug #176518. Fix focus on inital startup. Not part of the default build.

This commit is contained in:
blizzard%redhat.com 2002-10-25 02:46:17 +00:00
Родитель 74204ad075
Коммит 0209f9a3a1
1 изменённых файлов: 8 добавлений и 0 удалений

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

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