win: Fix window frame on detached window.

This commit is contained in:
Cheng Zhao 2014-07-12 21:26:29 +08:00
parent cf1009ab30
commit 9d4e977c01

View file

@ -140,7 +140,11 @@ void InspectableWebContentsViewViews::SetIsDocked(bool docked) {
devtools_window_web_view_,
devtools_window_.get());
params.top_level = true;
params.bounds = inspectable_web_contents()->GetDevToolsBounds();
#if defined(USE_X11)
// In X11 the window frame is drawn by the application.
params.remove_standard_frame = true;
#endif
devtools_window_->Init(params);
}