Compositor: Allow replacing wl_display_run()
Compositor: Allow replacing wl_display_run()

Compositor::run() runs wayland's event loop via wl_display_run(). This
commit adds Compositor::run_with() which does exactly the same things as
run(), but instead of calling wl_display_run(), this calls a callback.
Thus, after this commit it is possible to use a different event loop
than libwayland's builtin one.

Signed-off-by: Uli Schlachter <346c0ad49ac8427b61b3b55abbe37dc0ebd524f2@znc.in>

way-cooler/wlroots-rs,way-cooler/wlroots-rs