{
twe_wl_disp_source *wl_source = (twe_wl_disp_source *)source;
- wl_display_dispatch_queue(wl_source->disp, wl_source->ev_queue);
+ wl_display_dispatch_queue_pending(wl_source->disp, wl_source->ev_queue);
wl_event_queue_destroy(wl_source->ev_queue);
return;
source = (twe_wl_disp_source *)g_main_context_find_source_by_user_data(
g_main_loop_get_context(thread->ctx->twe_loop), display);
if (!source) {
- TPL_ERROR("Failed to get source from context.");
+ TPL_ERR("Failed to get source from context.");
return;
}
s = read(wl_surf_source->event_fd, &u, sizeof(uint64_t));
if (s != sizeof(uint64_t))
- TPL_ERROR("Failed to read from event_fd(%d)\n",
- wl_surf_source->event_fd);
+ TPL_ERR("Failed to read from event_fd(%d)\n",
+ wl_surf_source->event_fd);
}
return G_SOURCE_CONTINUE;
source = (twe_wl_surf_source *)g_source_new(&_twe_wl_surface_funcs,
sizeof(twe_wl_surf_source));
if (!source) {
- TPL_ERROR("[THREAD] Failed to create GSource from event_channel(%p)",
- event_channel);
+ TPL_ERR("[THREAD] Failed to create GSource from event_channel(%p)",
+ event_channel);
return -1;
}
source->event_fd = eventfd(0, EFD_CLOEXEC);
if (source->event_fd < 0) {
- TPL_ERROR("[THREAD] Failed to create eventfd. errno(%d)", errno);
+ TPL_ERR("[THREAD] Failed to create eventfd. errno(%d)", errno);
g_source_unref(&source->gsource);
return -1;
}
source = (twe_wl_surf_source *) g_main_context_find_source_by_user_data(
g_main_loop_get_context(ctx->twe_loop), surface);
if (!source) {
- TPL_ERROR("[THREAD] Failed to get source from context.");
+ TPL_ERR("[THREAD] Failed to get source from context.");
return;
}