Force paint events before flushing events.
Version bump.