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

This commit is contained in:
blizzard%redhat.com 2000-06-09 03:09:31 +00:00
Родитель aee3b0454d
Коммит 2c0919b2a5
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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