tpl_wayland_egl_thread: Modified to do wl_display_read_events only if revent has... 62/135162/4
authorjoonbum.ko <joonbum.ko@samsung.com>
Wed, 24 May 2017 05:15:13 +0000 (14:15 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 22 Jun 2017 08:55:01 +0000 (08:55 +0000)
 - 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 <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c

index 21f151a..1a0f67c 100644 (file)
@@ -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)