зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
aee3b0454d
Коммит
2c0919b2a5
|
@ -918,7 +918,12 @@ nsWindow::SetFocus(void)
|
||||||
if (top_mozarea)
|
if (top_mozarea)
|
||||||
{
|
{
|
||||||
if (!GTK_WIDGET_HAS_FOCUS(top_mozarea))
|
if (!GTK_WIDGET_HAS_FOCUS(top_mozarea))
|
||||||
|
{
|
||||||
gtk_widget_grab_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
|
// check to see if we need to send a focus out event for the old window
|
||||||
|
|
Загрузка…
Ссылка в новой задаче