wl_display_roundtrip already takes care of dispatching the display.
On left mouse button click, locks the cursor and renders relative motion events.