diff options
author | Rafael Antognolli <rafael.antognolli@linux.intel.com> | 2013-03-20 18:04:16 -0300 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2013-03-26 08:53:34 +0000 |
commit | 94de8c6549bc24133a1b789f13fdd8c097352f22 (patch) | |
tree | daa9b56a3d003028e94d504938136fed4787360e | |
parent | a2bccf3e533b2e95272de93bce6e9286b0c97af0 (diff) | |
download | efl-devs/devilhorns/wayland.tar.gz |
ecore_evas/wayland_shm: Check if the Ecore_Evas is visible on render.devs/devilhorns/wayland
Without this check, the code tries to access win->surface, which will be
NULL, causing a segfault.
Fix ticket #2304.
-rw-r--r-- | src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index 8aee6989fc..ee17249a21 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -862,6 +862,11 @@ _ecore_evas_wl_common_render(Ecore_Evas *ee) /* TODO: handle comp no sync */ 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) { |