fix bug #29027. When calling nsIWidget::SetFocus on a widget, bring it's toplevel window to the top of the stacking order and unminimize it if necessary. r=pavlov, a=brendan

git-svn-id: svn://10.0.0.236/trunk@71860 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blizzard%redhat.com 2000-06-09 03:09:31 +00:00
parent af7bdeeeb8
commit 33cdd7a02c

View File

@ -918,7 +918,12 @@ nsWindow::SetFocus(void)
if (top_mozarea)
{
if (!GTK_WIDGET_HAS_FOCUS(top_mozarea))
{
gtk_widget_grab_focus(top_mozarea);
// this will show the window if it's minimized and bring it to
// the front of the stacking order.
GetAttention();
}
}
// check to see if we need to send a focus out event for the old window