Chromium Code Reviews| Index: ui/views/widget/native_widget_aura.cc |
| diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc |
| index bf113e6e119de7bcb3ab99b2f21a1d185eba9ef7..234c285c984c49c87638cbad6748551fc8b5cf07 100644 |
| --- a/ui/views/widget/native_widget_aura.cc |
| +++ b/ui/views/widget/native_widget_aura.cc |
| @@ -484,12 +484,14 @@ void NativeWidgetAura::ShowWithWindowState(ui::WindowShowState state) { |
| if (!window_) |
| return; |
| - if (state == ui::SHOW_STATE_MAXIMIZED || state == ui::SHOW_STATE_FULLSCREEN) |
| - window_->SetProperty(aura::client::kShowStateKey, state); |
| + window_->SetProperty(aura::client::kShowStateKey, state); |
| window_->Show(); |
| if (delegate_->CanActivate()) { |
| - if (state != ui::SHOW_STATE_INACTIVE) |
| + if (state != ui::SHOW_STATE_INACTIVE) { |
| Activate(); |
| + if (state == ui::SHOW_STATE_MINIMIZED) |
|
tapted
2015/05/29 00:57:42
Sorry - I meant this should be part of the existin
joone
2015/05/29 01:11:27
Minimized() should be called. Without calling it,
tapted
2015/05/29 01:25:12
Can you find out why? i.e. What is "undoing" the c
oshima
2015/05/29 09:24:21
This is because showing minimized window will unmi
|
| + Minimize(); |
| + } |
| // SetInitialFocus() should be always be called, even for |
| // SHOW_STATE_INACTIVE. If the window has to stay inactive, the method will |
| // do the right thing. |