diff options
Diffstat (limited to 'chrome/browser/gtk/info_bubble_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/info_bubble_gtk.cc | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/chrome/browser/gtk/info_bubble_gtk.cc b/chrome/browser/gtk/info_bubble_gtk.cc index 3163555..6ee8e45 100644 --- a/chrome/browser/gtk/info_bubble_gtk.cc +++ b/chrome/browser/gtk/info_bubble_gtk.cc @@ -260,26 +260,8 @@ void InfoBubbleGtk::MoveWindow() { } void InfoBubbleGtk::StackWindow() { - // Stack our window directly above the toplevel window. Our window is a - // direct child of the root window, so we need to find a similar ancestor - // for the toplevel window (which might have been reparented by a window - // manager). - XID toplevel_window_base = x11_util::GetHighestAncestorWindow( - x11_util::GetX11WindowFromGtkWidget(GTK_WIDGET(toplevel_window_)), - x11_util::GetX11RootWindow()); - if (toplevel_window_base) { - XID window_xid = x11_util::GetX11WindowFromGtkWidget(GTK_WIDGET(window_)); - XID window_parent = x11_util::GetParentWindow(window_xid); - if (window_parent == x11_util::GetX11RootWindow()) { - x11_util::RestackWindow(window_xid, toplevel_window_base, true); - } else { - // The window manager shouldn't reparent override-redirect windows. - DLOG(ERROR) << "override-redirect window " << window_xid - << "'s parent is " << window_parent - << ", rather than root window " - << x11_util::GetX11RootWindow(); - } - } + // Stack our window directly above the toplevel window. + gtk_util::StackPopupWindow(window_, GTK_WIDGET(toplevel_window_)); } void InfoBubbleGtk::Observe(NotificationType type, |