| Index: ash/common/wm/window_cycle_list.cc
|
| diff --git a/ash/common/wm/window_cycle_list.cc b/ash/common/wm/window_cycle_list.cc
|
| index b6e82e332e82ea0d7f366bf2909514f7c251c6e3..e31826e12be7bd4ce5143d5bd3487399e29facdd 100644
|
| --- a/ash/common/wm/window_cycle_list.cc
|
| +++ b/ash/common/wm/window_cycle_list.cc
|
| @@ -613,14 +613,14 @@ void WindowCycleList::InitWindowCycleView() {
|
| WmWindow* root_window = WmShell::Get()->GetRootWindowForNewWindows();
|
| root_window->GetRootWindowController()->ConfigureWidgetInitParamsForContainer(
|
| widget, kShellWindowId_OverlayContainer, ¶ms);
|
| - widget->Init(params);
|
| -
|
| - screen_observer_.Add(display::Screen::GetScreen());
|
| gfx::Rect widget_rect = root_window->GetDisplayNearestWindow().bounds();
|
| int widget_height = cycle_view_->GetPreferredSize().height();
|
| widget_rect.set_y((widget_rect.height() - widget_height) / 2);
|
| widget_rect.set_height(widget_height);
|
| - widget->SetBounds(widget_rect);
|
| + params.bounds = widget_rect;
|
| + widget->Init(params);
|
| +
|
| + screen_observer_.Add(display::Screen::GetScreen());
|
| widget->Show();
|
| widget->SetCapture(cycle_view_);
|
| widget->set_auto_release_capture(false);
|
|
|