ecore/wayland: Actually wait for the sync callback on ecore_wl_sync(). 94/3294/1
authorRafael Antognolli <rafael.antognolli@intel.com>
Mon, 8 Apr 2013 18:25:10 +0000 (15:25 -0300)
committerRafael Antognolli <rafael.antognolli@intel.com>
Mon, 8 Apr 2013 18:43:39 +0000 (15:43 -0300)
commitca32fcc85522f0617ef95afbfdb105272ddd58b0
tree7899cf5073f22ddea67eb956f40ddecac4f0197b
parent2ed527869369b869d57841356741f0e8d08984a2
ecore/wayland: Actually wait for the sync callback on ecore_wl_sync().

The wl_display_sync() request doesn't really wait for all the requests
to be processed, but instead sends a request for the "done" event.
Wayland relies on the fact that the requests are processed in order, so
when the "done" event is received, it means that all the other requests
requested prior to the respective "sync" have been processed already.

This commit makes the ecore_wl_sync() call actually wait for its "done"
event (thus blocking the ecore mainloop).
src/lib/ecore_wayland/Ecore_Wayland.h
src/lib/ecore_wayland/ecore_wl.c