Index: ash/shell.cc |
diff --git a/ash/shell.cc b/ash/shell.cc |
index 411fcc9090cdb03110bf898448fd4ab5f168ae07..34fb55b6c325b1941f5963c6ace9f3e2edc3fc55 100644 |
--- a/ash/shell.cc |
+++ b/ash/shell.cc |
@@ -621,6 +621,14 @@ void Shell::Init() { |
// Let the first mouse event show the cursor. |
env_filter_->set_cursor_hidden_by_filter(true); |
} |
+ |
+ // The compositor thread and main message loop have to be running in |
+ // order to create mirror window. Run it after the main message loop |
+ // is started. |
+ base::MessageLoopForUI::current()->PostTask( |
+ FROM_HERE, |
+ base::Bind(&internal::DisplayManager::CreateMirrorWindowIfAny, |
+ base::Unretained(display_manager_.get()))); |
} |
void Shell::ShowContextMenu(const gfx::Point& location_in_screen, |