From: Frank Hale Date: Wed, 12 Nov 2014 06:04:51 +0000 (-0500) Subject: Fix merge conflict with native_window_views.cc X-Git-Tag: v0.19.2~14^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=246a14593042df9b86853530c457112b65670de4;p=electron.git Fix merge conflict with native_window_views.cc --- 246a14593042df9b86853530c457112b65670de4 diff --cc atom/browser/native_window_views.cc index 59de54bb,6a105ab7..348f3ab3 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@@ -227,11 -227,16 +227,21 @@@ NativeWindowViews::NativeWindowViews(co use_content_size_) bounds = ContentBoundsToWindowBounds(bounds); + #if defined(OS_WIN) + if (!has_frame_) { + // Set Window style so that we get a minimize and maximize animation when + // frameless. + DWORD frame_style = WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | + WS_CAPTION; + ::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, frame_style); + } + #endif + + if(has_frame_) { + window_->set_frame_type(views::Widget::FrameType::FRAME_TYPE_FORCE_NATIVE); + window_->FrameTypeChanged(); + } + window_->UpdateWindowIcon(); window_->CenterWindow(bounds.size()); Layout();