| Index: views/widget/native_widget_win.cc
|
| diff --git a/views/widget/native_widget_win.cc b/views/widget/native_widget_win.cc
|
| index aa4e8501c3349721252d2adcb2875f46784356e2..badbc31d547755bf6301cabaa9a797e44a31a8f3 100644
|
| --- a/views/widget/native_widget_win.cc
|
| +++ b/views/widget/native_widget_win.cc
|
| @@ -2235,7 +2235,7 @@ void NativeWidgetWin::SetInitParams(const Widget::InitParams& params) {
|
|
|
| // Set type-independent style attributes.
|
| if (params.child)
|
| - style |= WS_CHILD | WS_VISIBLE;
|
| + style |= WS_CHILD;
|
| if (params.show_state == ui::SHOW_STATE_MAXIMIZED)
|
| style |= WS_MAXIMIZE;
|
| if (params.show_state == ui::SHOW_STATE_MINIMIZED)
|
| @@ -2278,6 +2278,7 @@ void NativeWidgetWin::SetInitParams(const Widget::InitParams& params) {
|
| break;
|
| }
|
| case Widget::InitParams::TYPE_CONTROL:
|
| + style |= WS_VISIBLE;
|
| break;
|
| case Widget::InitParams::TYPE_WINDOW_FRAMELESS:
|
| style |= WS_POPUP;
|
|
|