From 32df6ec3e3f90b8cef33c47afa360dd4537729cc Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Wed, 24 May 2017 14:15:13 +0900 Subject: [PATCH] tpl_wayland_egl_thread: Modified to do wl_display_read_events only if revent has G_IO_IN. - revent can be G_IO_ERR, in which case do cancel_read and returning FALSE is more correct than returning TRUE for dispatching. Change-Id: I2ccb898a16115cad1f9996e399575a242686eb5d Signed-off-by: joonbum.ko --- src/tpl_wayland_egl_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 21f151a..1a0f67c 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -261,7 +261,7 @@ _twe_thread_wl_disp_check(GSource *source) { twe_wl_disp_source *disp_source = (twe_wl_disp_source *)source; - if (disp_source->gfd.revents) { + 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) -- 2.7.4