Bug 295447 Ctrl+1/2/4/5/6 raises window without focus

r+sr=roc
This commit is contained in:
ginn.chen%sun.com 2005-12-16 05:33:55 +00:00
Родитель cc652fabee
Коммит 8f04f3e743
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -697,6 +697,12 @@ nsWindow::SetFocus(PRBool aRaise)
if (!GTK_WIDGET_HAS_FOCUS(owningWidget)) {
LOGFOCUS((" grabbing focus for the toplevel [%p]\n", (void *)this));
owningWindow->mContainerBlockFocus = PR_TRUE;
// Set focus to the window
if (gRaiseWindows && aRaise && toplevelWidget &&
!GTK_WIDGET_HAS_FOCUS(toplevelWidget))
gtk_window_present(GTK_WINDOW(owningWindow->mShell));
gtk_widget_grab_focus(owningWidget);
owningWindow->mContainerBlockFocus = PR_FALSE;