aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@linux.intel.com>2013-03-20 21:04:16 (GMT)
committerRafael Antognolli <rafael.antognolli@linux.intel.com>2013-03-20 21:06:26 (GMT)
commit7a01acd60d3e73c94640f0c727beb06b1614eca0 (patch)
treedaa9b56a3d003028e94d504938136fed4787360e
parenteina-cow: fix valgrind instrumentation (diff)
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.
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c5
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 8aee698..ee17249 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)
{