ecore-wl2: use nonblocking event flush when disconnecting a client

roundtrip will deadlock if called in a compositor process

@fix
This commit is contained in:
Mike Blumenkrantz 2017-05-17 16:02:53 -04:00
parent f289967927
commit 0b10aa7f19
1 changed files with 6 additions and 1 deletions

View File

@ -818,7 +818,12 @@ ecore_wl2_display_disconnect(Ecore_Wl2_Display *display)
--display->refs;
if (display->refs == 0)
{
wl_display_roundtrip(display->wl.display);
int ret;
do
{
ret = wl_display_dispatch_pending(display->wl.display);
} while (ret > 0);
_ecore_wl2_display_cleanup(display);