From 0e9d973715fff77998bc5d0770e638fe7bb92dcf Mon Sep 17 00:00:00 2001 From: liusi Date: Thu, 3 Nov 2016 12:13:06 +0800 Subject: [PATCH] toggle thick_frame_ along with resizable change --- atom/browser/native_window_views.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 0ba974ad27..c41d8bb946 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -571,10 +571,8 @@ void NativeWindowViews::SetContentSizeConstraints( void NativeWindowViews::SetResizable(bool resizable) { #if defined(OS_WIN) - if (thick_frame_) { - FlipWindowStyle(GetAcceleratedWidget(), resizable, WS_THICKFRAME); - thick_frame_ = false; - } + FlipWindowStyle(GetAcceleratedWidget(), resizable, WS_THICKFRAME); + thick_frame_ = resizable; #elif defined(USE_X11) if (resizable != resizable_) { // On Linux there is no "resizable" property of a window, we have to set