mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-14 05:33:59 -04:00
wayland: wayl_init(): call wl_display_roundtrip() when done
This commit is contained in:
parent
291a928a49
commit
66b2097275
1 changed files with 3 additions and 2 deletions
|
|
@ -514,6 +514,9 @@ wayl_init(struct fdm *fdm)
|
||||||
}
|
}
|
||||||
|
|
||||||
wayl->kbd.repeat.fd = timerfd_create(CLOCK_BOOTTIME, TFD_CLOEXEC | TFD_NONBLOCK);
|
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) {
|
if (wayl->kbd.repeat.fd == -1) {
|
||||||
LOG_ERRNO("failed to create keyboard repeat timer FD");
|
LOG_ERRNO("failed to create keyboard repeat timer FD");
|
||||||
goto out;
|
goto out;
|
||||||
|
|
@ -540,8 +543,6 @@ wayl_init(struct fdm *fdm)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
//wl_display_dispatch_pending(wayl->display);
|
|
||||||
//wl_display_flush(wayl->display);
|
|
||||||
return wayl;
|
return wayl;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue