mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Only call gtk_window_present on top-level windows. b=330006 r+sr=roc
This commit is contained in:
parent
a53b6f184e
commit
dc590c75f1
@ -728,6 +728,9 @@ nsWindow::SetFocus(PRBool aRaise)
|
||||
// Set focus to the window
|
||||
if (gRaiseWindows && aRaise && toplevelWidget &&
|
||||
!GTK_WIDGET_HAS_FOCUS(toplevelWidget) &&
|
||||
// If we're really a child of owningWindow
|
||||
gdk_window_get_parent(mDrawingarea->clip_window) ==
|
||||
owningWindow->mDrawingarea->inner_window &&
|
||||
owningWindow->mIsShown && GTK_IS_WINDOW(owningWindow->mShell))
|
||||
gtk_window_present(GTK_WINDOW(owningWindow->mShell));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user