Fix maximize --> unmaximize positioning issue

This commit is contained in:
Samuel Attard 2016-11-22 16:07:05 +11:00
parent c65033a13b
commit 621a934160
No known key found for this signature in database
GPG key ID: 273DC1869D8F13EF
2 changed files with 11 additions and 4 deletions

View file

@ -216,6 +216,7 @@ class NativeWindowViews : public NativeWindow,
// size of the window while in the normal state (not maximized, minimized or
// fullscreen), so we restore it correctly.
gfx::Rect last_normal_bounds_;
gfx::Rect last_normal_bounds_before_move_;
// last_normal_bounds_ may or may not require update on WM_MOVE. When a
// window is maximized, it is moved (WM_MOVE) to maximum size first and then