{
twe_wl_disp_source *disp_source = (twe_wl_disp_source *)source;
- TPL_LOG_T("WL_EGL", "prepare| gsource(%p) wl_display(%p)",
- source, disp_source->disp);
while (wl_display_prepare_read_queue(disp_source->disp,
disp_source->ev_queue) != 0) {
if (wl_display_dispatch_queue_pending(disp_source->disp,
}
if (disp_source->gfd.revents & G_IO_IN) {
- TPL_LOG_T("WL_EGL", "read_events| gsource(%p) wl_display(%p)",
- source, disp_source->disp);
if (wl_display_read_events(disp_source->disp) == -1)
_twe_display_print_err(disp_source, "read_event.");
return TRUE;
} else {
- TPL_LOG_T("WL_EGL", "cancel_read| gsource(%p) wl_display(%p)",
- source, disp_source->disp);
wl_display_cancel_read(disp_source->disp);
}
}
if (disp_source->gfd.revents & G_IO_IN) {
- TPL_LOG_T("WL_EGL", "dispatch| gsource(%p) wl_display(%p)",
- disp_source, disp_source->disp);
if (wl_display_dispatch_queue_pending(disp_source->disp,
disp_source->ev_queue) == -1) {
_twe_display_print_err(disp_source, "dispatch_queue_pending");
ssize_t s;
uint64_t u;
- TPL_LOG_T("WL_EGL", "dispatch| gsource(%p) read event_fd(%d)",
- wl_surf_source, wl_surf_source->event_fd);
s = read(wl_surf_source->event_fd, &u, sizeof(uint64_t));
if (s != sizeof(uint64_t))
TPL_ERR("Failed to read from event_fd(%d)",