moved event pumping onto the draw thread, should fix windows event problems