Port over the write block handler code from the 1.5 patch.


git-svn-id: https://tigervnc.svn.sourceforge.net/svnroot/tigervnc@5077 3789f03b-4d11-0410-bbf8-ca57d06f2519