Pay attention to the width and height provided in WM_SIZE even when
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 22 Dec 2010 16:14:11 +0000 (16:14 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 22 Dec 2010 16:14:11 +0000 (16:14 +0000)
commit754fa07606496ae1a79ba4e27f448c2ae3c71f7e
tree9421b190540f31fa3d71d94fbc1dd8b1d22c2f79
parent232c6eacfb0a777d55172e80c494d2623bdea47f
Pay attention to the width and height provided in WM_SIZE even when
restoring a maximised window.

Failure to do this was noticeable in the following scenario (again
using Aero UI enhancements):
 1. resize window using topmost resize handle, and move pointer to top
    of screen which 'maximises' the window vertically
 2. now maximise the window properly using the maximise button in top
    right
 3. now restore. Notepad restores to its position before step 1,
    because Aero remembers that position for the purpose, but PuTTY
    thinks it knows better. Only now it doesn't any more.

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