Backend initiates window zooming
commitbc1b22ddd807060c2569214c5658ab24b66e3aa2
authorBjorn Winckler <bjorn.winckler@gmail.com>
Mon, 8 Feb 2010 17:18:34 +0000 (8 18:18 +0100)
committerBjorn Winckler <bjorn.winckler@gmail.com>
Sat, 13 Feb 2010 22:56:42 +0000 (13 23:56 +0100)
treec9adee60722966c3b0cfac763484f44cd9c7825f
parent36741dcb5b662c507bdba07acafe394560002a25
Backend initiates window zooming

Don't change the window size immediately upon pressing the zoom button.
Instead send the message to Vim and let it resize before the window
does.  This avoids flickering problem when zooming with the Core Text
renderer.

The zooming is also slightly smarter about which window size to restore
if the toolbar was hidden while the window was zoomed.
12 files changed:
src/MacVim/MMAtsuiTextView.m
src/MacVim/MMBackend.m
src/MacVim/MMCoreTextView.m
src/MacVim/MMVimController.m
src/MacVim/MMVimView.h
src/MacVim/MMVimView.m
src/MacVim/MMWindow.h
src/MacVim/MMWindow.m
src/MacVim/MMWindowController.h
src/MacVim/MMWindowController.m
src/MacVim/MacVim.h
src/MacVim/MacVim.m