aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-07-25 16:45:32 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-07-26 10:25:14 +0900
commitb2b980a7372daaa63f42b53a0311b4449abd7089 (patch)
tree17ce7ac780d8eaace49337d6d5648b747951d4e8
parentwayland_shm: Fix fd leak in dmabuf (diff)
downloadefl-b2b980a7372daaa63f42b53a0311b4449abd7089.tar.gz
evas: Fix inefficient updates with no_render
is_visible returns 0 if no_render is true, so should was_visible as well. Yeah, there will be problems if no_render changes on the fly. Don't do that. Fixes https://phab.enlightenment.org/T4193
-rw-r--r--src/lib/evas/include/evas_inline.x2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/include/evas_inline.x b/src/lib/evas/include/evas_inline.x
index 510077c759..5778d85096 100644
--- a/src/lib/evas/include/evas_inline.x
+++ b/src/lib/evas/include/evas_inline.x
@@ -25,7 +25,7 @@ _evas_object_event_new(void)
static inline int
evas_object_was_visible(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
{
- if ((obj->prev->visible) &&
+ if ((obj->prev->visible) && (!obj->no_render) &&
((obj->prev->cache.clip.visible) || obj->is_smart) &&
((obj->prev->cache.clip.a > 0 && obj->prev->render_op == EVAS_RENDER_BLEND)
|| obj->prev->render_op != EVAS_RENDER_BLEND))