Bug 337859 Firefox windows open very small initially, then expand to

regular size
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@198305 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ginn.chen%sun.com 2006-05-24 03:45:30 +00:00
parent a8c12457b7
commit 13b18071e1

View File

@ -715,7 +715,7 @@ nsWindow::SetFocus(PRBool aRaise)
// Set focus to the window
if (gRaiseWindows && aRaise && toplevelWidget &&
!GTK_WIDGET_HAS_FOCUS(toplevelWidget) &&
!mNeedsResize && GTK_IS_WINDOW(owningWindow->mShell))
owningWindow->mIsShown && GTK_IS_WINDOW(owningWindow->mShell))
gtk_window_present(GTK_WINDOW(owningWindow->mShell));
gtk_widget_grab_focus(owningWidget);