forked from enlightenment/efl
ecore-wayland: Fix issue of events not getting dispatched properly
Summary: In order for wayland events to be processed properly, we should be dispatching any pending events off of the queue First before we make the call to flush. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
c26134df7a
commit
5d48756227
|
@ -537,14 +537,14 @@ _ecore_wl_cb_idle_enterer(void *data)
|
|||
ret = wl_display_get_error(ewd->wl.display);
|
||||
if (ret < 0) goto err;
|
||||
|
||||
ret = wl_display_dispatch_pending(ewd->wl.display);
|
||||
if (ret < 0) goto err;
|
||||
|
||||
ret = wl_display_flush(ewd->wl.display);
|
||||
if ((ret < 0) && (errno == EAGAIN))
|
||||
ecore_main_fd_handler_active_set(ewd->fd_hdl,
|
||||
(ECORE_FD_READ | ECORE_FD_WRITE));
|
||||
|
||||
ret = wl_display_dispatch_pending(ewd->wl.display);
|
||||
if (ret < 0) goto err;
|
||||
|
||||
return ECORE_CALLBACK_RENEW;
|
||||
|
||||
err:
|
||||
|
|
Loading…
Reference in New Issue