From c61414e11bbb2e879017add67d12bd2654949851 Mon Sep 17 00:00:00 2001 From: liusi Date: Thu, 27 Oct 2016 17:14:31 +0800 Subject: [PATCH] fix for Window hidden behind taskbar after maximize #7672 --- atom/browser/native_window_views.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index d2f2077151e8..8575d53abdbf 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -572,8 +572,10 @@ void NativeWindowViews::SetContentSizeConstraints( void NativeWindowViews::SetResizable(bool resizable) { #if defined(OS_WIN) - if (thick_frame_) + if (thick_frame_) { FlipWindowStyle(GetAcceleratedWidget(), resizable, WS_THICKFRAME); + thick_frame_ = !thick_frame_; + } #elif defined(USE_X11) if (resizable != resizable_) { // On Linux there is no "resizable" property of a window, we have to set