event_loop: set the user func and data before calling wayland API.