summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-06-23 11:00:07 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-23 11:11:29 -0400
commit5d487562271f494a5d870b89fed13e3415759d85 (patch)
treeea47e091ad261d3db86de315e55ff2b023781660 /src/lib/ecore_wayland
parentc26134df7a43292e2dedee26da8aa62415528657 (diff)
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>
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl.c b/src/lib/ecore_wayland/ecore_wl.c
index f5d13ed..c9764f2 100644
--- a/src/lib/ecore_wayland/ecore_wl.c
+++ b/src/lib/ecore_wayland/ecore_wl.c
@@ -537,14 +537,14 @@ _ecore_wl_cb_idle_enterer(void *data)
537 ret = wl_display_get_error(ewd->wl.display); 537 ret = wl_display_get_error(ewd->wl.display);
538 if (ret < 0) goto err; 538 if (ret < 0) goto err;
539 539
540 ret = wl_display_dispatch_pending(ewd->wl.display);
541 if (ret < 0) goto err;
542
540 ret = wl_display_flush(ewd->wl.display); 543 ret = wl_display_flush(ewd->wl.display);
541 if ((ret < 0) && (errno == EAGAIN)) 544 if ((ret < 0) && (errno == EAGAIN))
542 ecore_main_fd_handler_active_set(ewd->fd_hdl, 545 ecore_main_fd_handler_active_set(ewd->fd_hdl,
543 (ECORE_FD_READ | ECORE_FD_WRITE)); 546 (ECORE_FD_READ | ECORE_FD_WRITE));
544 547
545 ret = wl_display_dispatch_pending(ewd->wl.display);
546 if (ret < 0) goto err;
547
548 return ECORE_CALLBACK_RENEW; 548 return ECORE_CALLBACK_RENEW;
549 549
550err: 550err: