wayland: Allow xwayland commit surfaces after receiving sync request acknowledgement
This fixes client-side decorated windows such as chromium displaying "black bars" when they are being interactively resized.
The idea behind the fix: send a sync request and block wl_surface commits to freeze the surface, wait until the client repaints the window and acks the sync request, unblock wl_surface commits (in response, Xwayland will commit a new buffer), repeat the cycle if the pointer is moved again.
(cherry picked from commit 23f85440)
Co-authored-by: Vlad Zahorodnii vlad.zahorodnii@kde.org
Draft: still needs more testing in master