forked from enlightenment/efl
ecore-wl2: Cancel data callback if we have a fatal error
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
e9fab75178
commit
2aecd1ec48
|
@ -169,6 +169,8 @@ _cb_create_data(void *data, Ecore_Fd_Handler *hdl)
|
||||||
|
|
||||||
ewd = data;
|
ewd = data;
|
||||||
|
|
||||||
|
if (_fatal_error) return ECORE_CALLBACK_CANCEL;
|
||||||
|
|
||||||
if (ecore_main_fd_handler_active_get(hdl, ECORE_FD_ERROR))
|
if (ecore_main_fd_handler_active_get(hdl, ECORE_FD_ERROR))
|
||||||
{
|
{
|
||||||
ERR("Received Fatal Error on Wayland Display");
|
ERR("Received Fatal Error on Wayland Display");
|
||||||
|
@ -450,6 +452,7 @@ ecore_wl2_display_create(const char *name)
|
||||||
}
|
}
|
||||||
|
|
||||||
setenv("WAYLAND_DISPLAY", ewd->name, 1);
|
setenv("WAYLAND_DISPLAY", ewd->name, 1);
|
||||||
|
DBG("WAYLAND_DISPLAY: %s", ewd->name);
|
||||||
|
|
||||||
loop = wl_display_get_event_loop(ewd->wl.display);
|
loop = wl_display_get_event_loop(ewd->wl.display);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue