b=808114 don't hide mContainer in toplevels, to keep a focus widget for grabs r=roc

--HG--
extra : transplant_source : %8F%FC%95%EEa0%F0%08%A7Yi%80%C0b%06%BE%3Dg%DEY
This commit is contained in:
Karl Tomlinson 2012-11-14 23:22:07 -08:00
parent 9619e49d3f
commit b392d82c79

View File

@ -3572,7 +3572,8 @@ nsWindow::Create(nsIWidget *aParent,
gtk_widget_realize(container);
// make sure this is the focus widget in the container
gtk_window_set_focus(GTK_WINDOW(mShell), container);
gtk_widget_show(container);
gtk_widget_grab_focus(container);
// the drawing window
mGdkWindow = gtk_widget_get_window(mShell);
@ -3906,7 +3907,6 @@ nsWindow::NativeShow(bool aAction)
SetUserTimeAndStartupIDForActivatedWindow(mShell);
}
gtk_widget_show(GTK_WIDGET(mContainer));
gtk_widget_show(mShell);
}
else if (mContainer) {
@ -3919,7 +3919,6 @@ nsWindow::NativeShow(bool aAction)
else {
if (mIsTopLevel) {
gtk_widget_hide(GTK_WIDGET(mShell));
gtk_widget_hide(GTK_WIDGET(mContainer));
ClearTransparencyBitmap(); // Release some resources
}