Fix more redraw issues

Track damage differently, and make the client explicitly clear damage
when it is done drawing.