avoid redrawing when we haven't touched the screen
clean up event masks