backend/wayland: dispatch remote display when waiting for a configure event
We don't need to process all events, only those that come from the host compositor. This also avoids running user event handlers while in the middle of committing an output.
Fixes: #3857 (closed)