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

regular size
r+sr=roc
This commit is contained in:
ginn.chen%sun.com 2006-05-24 03:45:30 +00:00
parent 28fdef2190
commit 9079fd02cd

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