Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
index 785a816130c4433d865d350e7dd480b285929dbc..960c0c012c552cc5bf5137037c99d19c828a6c6e 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
@@ -239,13 +239,6 @@ void DesktopWindowTreeHostX11::OnRootWindowCreated( |
dispatcher_->window()->SetProperty(kHostForRootWindow, this); |
delegate_ = dispatcher_; |
- // If we're given a parent, we need to mark ourselves as transient to another |
- // window. Otherwise activation gets screwy. |
- gfx::NativeView parent = params.parent; |
- if (!params.child && params.parent) { |
- corewm::AddTransientChild(parent, content_window_); |
- } |
- |
// Ensure that the X11DesktopHandler exists so that it dispatches activation |
// messages to us. |
X11DesktopHandler::get(); |