From 7a7f1ee711c9de118da5a63aba6f49da37f52faa Mon Sep 17 00:00:00 2001 From: Heilig Benedek Date: Sun, 12 Nov 2017 07:09:25 +0100 Subject: [PATCH] dont resize on taskbar resize if resizable is false --- atom/browser/native_window_views_win.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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(l_param); + if (window_pos->flags | SWP_FRAMECHANGED) + return !CanResize(); + + return false; + } default: return false; }