another stab in the dark at 26882. Fixes initial focus problems upon launch on linux.

This commit is contained in:
saari%netscape.com 2000-09-03 02:18:25 +00:00
parent 87c3cc9be0
commit dae94a56ae

View File

@ -534,7 +534,7 @@ nsWebShellWindow::HandleEvent(nsGUIEvent *aEvent)
nsCOMPtr<nsIDOMWindowInternal> focusedWindow;
commandDispatcher->GetFocusedWindow(getter_AddRefs(focusedWindow));
if (focusedWindow) {
commandDispatcher->SetSuppressFocus(PR_TRUE);
//commandDispatcher->SetSuppressFocus(PR_TRUE);
domWindow->Focus(); // This sets focus, but we'll ignore it.
// A subsequent activate will cause us to stop suppressing.
break;