Add input queue to backend, fixing process leak problem.
commit54b459780c5cfd132ccf3396492ec26ce1692452
authorBjorn Winckler <bjorn.winckler@gmail.com>
Thu, 25 Oct 2007 17:29:44 +0000 (25 19:29 +0200)
committerBjorn Winckler <bjorn.winckler@gmail.com>
Thu, 25 Oct 2007 17:29:44 +0000 (25 19:29 +0200)
tree685272f58fbc35f2d3e8e3d2b4e28137c15150ce
parente86a0fbe9d85a9750fc00bb8c150922d4077b9f8
Add input queue to backend, fixing process leak problem.

Mouse and keyboard input is handled immediately, all other input is put on a
queue which is processed whenever gui_mch_update() is called.  This avoids DO
calls to be sent from the backend during processing of another DO call.  (See
comments in MMBackend processInput:data: and processInputQueue.)  One problem
this caused was that connectionDidDie notification was not received when
processInput:data: got called recursively (and thus processes could "leak").

Also did some code cleanup to MMBackend.
src/MacVim/MMAppController.m
src/MacVim/MMBackend.h
src/MacVim/MMBackend.m
src/MacVim/gui_macvim.m