From 2cc01eea30f1694758942d72ccd17ddac5765258 Mon Sep 17 00:00:00 2001 From: liusi Date: Mon, 25 Jul 2016 22:51:27 +0800 Subject: [PATCH] issue 6574 - Window position doesn't restore correctly --- atom/browser/native_window_views_win.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atom/browser/native_window_views_win.cc b/atom/browser/native_window_views_win.cc index 9af003d55db0..2da0293f341a 100644 --- a/atom/browser/native_window_views_win.cc +++ b/atom/browser/native_window_views_win.cc @@ -121,7 +121,10 @@ bool NativeWindowViews::PreHandleMSG( ::GetWindowRect(GetAcceleratedWidget(), (LPRECT)l_param); return false; } - + case WM_MOVE: { + last_normal_bounds_ = GetBounds(); + return false; + } default: return false; }