Bug 352936 - Download manager window not focused properly when already open and using Do this automatically, patch by Adam Guthrie, r+sr=roc

This commit is contained in:
martijn.martijn%gmail.com 2006-09-20 19:16:19 +00:00
parent d26cfa8f62
commit dd78e2b9c0

View File

@ -1402,7 +1402,7 @@ nsWindow::GetAttention(PRInt32 aCycleCount)
GtkWidget* top_window = nsnull;
GetToplevelWidget(&top_window);
if (top_window && GTK_WIDGET_VISIBLE(top_window)) {
gdk_window_show(top_window->window);
gdk_window_show_unraised(top_window->window);
}
return NS_OK;