forked from enlightenment/efl
ecore_evas/wayland_shm: Check if the Ecore_Evas is visible on render.
Without this check, the code tries to access win->surface, which will be NULL, causing a segfault. Fix ticket #2304.
This commit is contained in:
parent
61c50e9d1c
commit
7a01acd60d
|
@ -862,6 +862,11 @@ _ecore_evas_wl_common_render(Ecore_Evas *ee)
|
||||||
/* TODO: handle comp no sync */
|
/* TODO: handle comp no sync */
|
||||||
|
|
||||||
if (ee->in_async_render) return 0;
|
if (ee->in_async_render) return 0;
|
||||||
|
if (!ee->visible)
|
||||||
|
{
|
||||||
|
evas_norender(ee->evas);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
EINA_LIST_FOREACH(ee->sub_ecore_evas, l, ee2)
|
EINA_LIST_FOREACH(ee->sub_ecore_evas, l, ee2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue