mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Bug 329675 gtk assertion `GTK_IS_WINDOW (window)' failure
r+sr=roc
This commit is contained in:
parent
a812ebde1c
commit
a4000ccb9f
@ -704,7 +704,7 @@ nsWindow::SetFocus(PRBool aRaise)
|
||||
// Set focus to the window
|
||||
if (gRaiseWindows && aRaise && toplevelWidget &&
|
||||
!GTK_WIDGET_HAS_FOCUS(toplevelWidget) &&
|
||||
!mNeedsResize)
|
||||
!mNeedsResize && GTK_IS_WINDOW(owningWindow->mShell))
|
||||
gtk_window_present(GTK_WINDOW(owningWindow->mShell));
|
||||
|
||||
gtk_widget_grab_focus(owningWidget);
|
||||
|
Loading…
Reference in New Issue
Block a user