WM_SIZE/SIZE_MAXIMIZED can show up even during an interactive resize,
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 5 Feb 2012 10:08:20 +0000 (10:08 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 5 Feb 2012 10:08:20 +0000 (10:08 +0000)
commit5f4e628b09b4b279dc633d639ce4598a4acec26d
tree71fa7553ced10e4cbd590dd592d227aa48c17cb2
parent059a0abd5cf825da1cda1687ad5773a2e268e4cb
WM_SIZE/SIZE_MAXIMIZED can show up even during an interactive resize,
so we should ensure we treat it the same way as other WM_SIZEs that
show up during that time: set the width and height in conf, and set
the flag to have that width and height enacted on WM_EXITSIZEMOVE.

Fixes a bug in which dragging a PuTTY window directly from the Win7
snapped-to-half-screen position to the snapped-to-maximised state
would leave the terminal in the pre-snapped size.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9404 cda61777-01e9-0310-a592-d414129be87e
windows/window.c