simon-svn: putty: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Mon Dec 27 12:58:39 GMT 2010


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       9056
Date:           2010-12-27 12:58:39 +0000 (Mon, 27 Dec 2010)

Log message (14 lines):
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.

Modified files:
U   putty/windows/window.c

Links:
http://svn.tartarus.org/sgt/?rev=9056&view=rev
http://svn.tartarus.org/sgt/putty/windows/window.c?rev=9056&r1=9055&r2=9056



More information about the tartarus-commits mailing list