wayland: add comment

This commit is contained in:
Daniel Eklöf 2020-01-04 23:33:50 +01:00
parent d243a836ce
commit 11d381f0c3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1045,6 +1045,10 @@ wayl_roundtrip(struct wayland *wayl)
wl_display_cancel_read(wayl->display);
wl_display_roundtrip(wayl->display);
/* I suspect the roundtrip above clears the pending queue, and
* that prepare_read() will always succeed in the first call. But,
* better safe than sorry... */
while (wl_display_prepare_read(wayl->display) != 0)
wl_display_dispatch_pending(wayl->display);
wayl_flush(wayl);