- 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>
{
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)