ecore-wl2: Ensure display cleanup after roundtrips
authorChris Michael <cp.michael@samsung.com>
Wed, 1 Mar 2017 13:32:18 +0000 (08:32 -0500)
committerChris Michael <cp.michael@samsung.com>
Wed, 1 Mar 2017 13:32:18 +0000 (08:32 -0500)
commitc6b59be1da0bf9a3c667f63e82ec4a2ad64f0e9e
treec5ff373f38e57999a9ff806249434d53e8f9c94d
parent7359f0be6e80c818ea3067671fb5c84af5ec9aae
ecore-wl2: Ensure display cleanup after roundtrips

Commit ee52a28d041dfb02da0f2deca0714beb5eaa51fd added a roundtrip to
ensure and pending wl events were handled before we disconnected the
display. While this ensures some things like session recovery destroy
work again, it lead to an issue where the _ecore_wl2_display_cleanup
function was called BEFORE we processed pending events. This (in turn)
causes crashes due to processing of pending events that relied on
things like Ecore_Wl2_Input existing. As the display cleanup function
clears inputs & outputs, we need to defer calling that until the
display_roundtrip has dispatched and handled pending events.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/ecore_wl2_display.c