event: Add an event for main_loop