Split task/server out to their own files
Put the damaged region in window coordinates again
Remove an inaccurate comment

This doesn't only happen for resizes.
Fix redraw issues

If an area was exposed inside the new window, we need to make sure we
mark it, as otherwise it may get incorrectly copied from the existing
contents of the front buffer.