Index: ui/aura/window.cc |
diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
index 412bd1a2c01b65e07f9084d9aecc7227c9b1a819..6ccf808d8a7c93106a8c7afc6c8213a6a65ac8a0 100644 |
--- a/ui/aura/window.cc |
+++ b/ui/aura/window.cc |
@@ -126,6 +126,10 @@ void Window::MoveChildToFront(Window* child) { |
// TODO(beng): this obviously has to handle different window types. |
children_.insert(children_.begin() + children_.size(), child); |
SchedulePaintInRect(gfx::Rect()); |
+ |
+ ui::Layer* parent_layer = child->layer()->parent(); |
+ parent_layer->Remove(child->layer()); |
+ parent_layer->Add(child->layer()); |
} |
void Window::AddChild(Window* child) { |