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:
parent
f289967927
commit
0b10aa7f19
|
@ -818,7 +818,12 @@ ecore_wl2_display_disconnect(Ecore_Wl2_Display *display)
|
||||||
--display->refs;
|
--display->refs;
|
||||||
if (display->refs == 0)
|
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);
|
_ecore_wl2_display_cleanup(display);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue