wayland: wayl_init(): call wl_display_roundtrip() when done

This commit is contained in:
Daniel Eklöf 2019-11-01 20:02:02 +01:00
parent 291a928a49
commit 66b2097275
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -514,6 +514,9 @@ wayl_init(struct fdm *fdm)
}
wayl->kbd.repeat.fd = timerfd_create(CLOCK_BOOTTIME, TFD_CLOEXEC | TFD_NONBLOCK);
/* All wayland initialization done - make it so */
wl_display_roundtrip(wayl->display);
if (wayl->kbd.repeat.fd == -1) {
LOG_ERRNO("failed to create keyboard repeat timer FD");
goto out;
@ -540,8 +543,6 @@ wayl_init(struct fdm *fdm)
goto out;
}
//wl_display_dispatch_pending(wayl->display);
//wl_display_flush(wayl->display);
return wayl;
out: