Browse Source

win: Show minimize button for unresizable window, fixes #411.

Cheng Zhao 10 years ago
parent
commit
a8ca0329b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/native_window_views.cc

+ 1 - 1
atom/browser/native_window_views.cc

@@ -313,7 +313,7 @@ void NativeWindowViews::SetResizable(bool resizable) {
     if (resizable)
       style |= WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME;
     else
-      style &= ~(WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME);
+      style = (style & ~(WS_MAXIMIZEBOX | WS_THICKFRAME)) | WS_MINIMIZEBOX;
     ::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, style);
   }
 #endif