]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix merge conflict with native_window_views.cc
authorFrank Hale <frankhale@gmail.com>
Wed, 12 Nov 2014 06:04:51 +0000 (01:04 -0500)
committerFrank Hale <frankhale@gmail.com>
Wed, 12 Nov 2014 06:04:51 +0000 (01:04 -0500)
1  2 
atom/browser/native_window_views.cc

index 59de54bbf2f06b08f52ef400028861a114e0dd17,6a105ab7dca1d72c2d08b962b6d23ce52d899f6e..348f3ab332ed2e34dc9d80c4fec41b441fe8f9e9
@@@ -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();