| Index: ui/views/mus/native_widget_mus.cc
|
| diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
|
| index 4df9aeb82e2ae1ed3bedb351d2ce88f056175551..abe4462f584e2bc3f5e51e3acada8ce15a915372 100644
|
| --- a/ui/views/mus/native_widget_mus.cc
|
| +++ b/ui/views/mus/native_widget_mus.cc
|
| @@ -309,6 +309,14 @@ void NativeWidgetMus::InitNativeWidget(const Widget::InitParams& params) {
|
| native_widget_delegate_->OnNativeWidgetCreated(false);
|
| }
|
|
|
| +void NativeWidgetMus::OnWidgetInitDone() {
|
| + // The client area is calculated from the NonClientView. During
|
| + // InitNativeWidget() the NonClientView has not been created. When this
|
| + // function is called the NonClientView has been created, so that we can
|
| + // correctly calculate the client area and push it to the mus::Window.
|
| + UpdateClientArea();
|
| +}
|
| +
|
| bool NativeWidgetMus::ShouldUseNativeFrame() const {
|
| // NOTIMPLEMENTED();
|
| return false;
|
|
|