Both X11 and Wayland support the same format for drag & drop operations (text/uri-list), and the code for that was copied from x11_common.c to wayland_common.c. Factor it out.
event.c will be used to feed the input queue with 'global' events that don't mesh well with the usual check_events path in mpv.