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..a9205018b651b99d6715321a8a079565cd4851fe 100644 |
--- a/ui/views/widget/native_widget_aura.cc |
+++ b/ui/views/widget/native_widget_aura.cc |
@@ -484,8 +484,7 @@ 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) |
@@ -495,6 +494,9 @@ void NativeWidgetAura::ShowWithWindowState(ui::WindowShowState state) { |
// do the right thing. |
SetInitialFocus(state); |
} |
+ |
+ if (state == ui::SHOW_STATE_MINIMIZED) |
+ Minimize(); |
tapted
2015/05/28 23:55:02
Minimize() is literally `window_->SetProperty(aura
tapted
2015/05/29 00:02:16
(maybe you just need to include ui::SHOW_STATE_MIN
joone
2015/05/29 00:52:00
It works fine so I've uploaded the patch.
|
} |
bool NativeWidgetAura::IsVisible() const { |