diff --git a/atom/browser/native_window_views_win.cc b/atom/browser/native_window_views_win.cc index 83e7dfaa79a..3af8877c418 100644 --- a/atom/browser/native_window_views_win.cc +++ b/atom/browser/native_window_views_win.cc @@ -165,6 +165,13 @@ bool NativeWindowViews::PreHandleMSG( } return false; } + case WM_WINDOWPOSCHANGING: { + auto window_pos = reinterpret_cast<LPWINDOWPOS>(l_param); + if (window_pos->flags | SWP_FRAMECHANGED) + return !CanResize(); + + return false; + } default: return false; }