Fix resize handling when enabling and disabling full-screen mode.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 27 Dec 2010 12:58:39 +0000 (12:58 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 27 Dec 2010 12:58:39 +0000 (12:58 +0000)
commit19caf3185084d85a282e088cf6b7ca5cb81ce049
tree205d6fe97aacd2c7ad63b6805d157735efad530c
parentadb6167a29d4056ecf93843d46f87e4160298b0e
Fix resize handling when enabling and disabling full-screen mode.

I'm not sure whether I broke this in the recent revamp or whether it
was always broken, but: transitions in and out of full-screen mode
work by first maximising or restoring the window, which triggers a
WM_SIZE, whose handler then fiddles with the window style to disable
or re-enable all the furniture, which in turn triggers a recursive
WM_SIZE. The trouble is, after returning from the handler for the
inner WM_SIZE, the rest of the outer handler runs, and its client area
size is now out of date.

So I've added a flag which is set when a resize is handled 'properly',
so that after returning from the inner WM_SIZE handler the outer one
knows not to try to redo badly work that's already been done well.

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