summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-07-20 10:36:00 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-07-20 10:36:00 -0400
commite34136ea7223cb161af782e8da949a15c3317b57 (patch)
treed6f714df7c682011b8946a226cd59251a9374326
parent1297e81e81559064aa02cfda5d6655295edd7d22 (diff)
evas clip: stop move events feeds.
Summary: there is no point to feeding mouse events if clipped object is invisible because previsou/current situation won't be different. fyi, move events won't be triggered if prev/cur coordinates are same. Reviewers: #committers, zmike Reviewed By: #committers, zmike Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6645
-rw-r--r--src/lib/evas/canvas/evas_clip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_clip.c b/src/lib/evas/canvas/evas_clip.c
index ae6fffb7b2..c69097dc8f 100644
--- a/src/lib/evas/canvas/evas_clip.c
+++ b/src/lib/evas/canvas/evas_clip.c
@@ -394,7 +394,7 @@ _efl_canvas_object_clip_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Ob
394 evas_object_update_bounding_box(eo_obj, obj, NULL); 394 evas_object_update_bounding_box(eo_obj, obj, NULL);
395 evas_object_clip_dirty(eo_obj, obj); 395 evas_object_clip_dirty(eo_obj, obj);
396 evas_object_recalc_clippees(obj); 396 evas_object_recalc_clippees(obj);
397 if ((!obj->is_smart) && 397 if (obj->cur->visible && (!obj->is_smart) &&
398 (!((obj->map->cur.map) && (obj->map->cur.usemap)))) 398 (!((obj->map->cur.map) && (obj->map->cur.usemap))))
399 { 399 {
400 _evas_canvas_event_pointer_in_rect_mouse_move_feed(obj->layer->evas, 400 _evas_canvas_event_pointer_in_rect_mouse_move_feed(obj->layer->evas,
@@ -442,7 +442,8 @@ _clip_unset(Eo *eo_obj, Evas_Object_Protected_Data *obj)
442 evas_object_change(eo_obj, obj); 442 evas_object_change(eo_obj, obj);
443 evas_object_clip_dirty(eo_obj, obj); 443 evas_object_clip_dirty(eo_obj, obj);
444 evas_object_recalc_clippees(obj); 444 evas_object_recalc_clippees(obj);
445 if ((!obj->is_smart) && 445
446 if (obj->cur->visible && (!obj->is_smart) &&
446 (!((obj->map->cur.map) && (obj->map->cur.usemap)))) 447 (!((obj->map->cur.map) && (obj->map->cur.usemap))))
447 { 448 {
448 _evas_canvas_event_pointer_in_rect_mouse_move_feed(obj->layer->evas, 449 _evas_canvas_event_pointer_in_rect_mouse_move_feed(obj->layer->evas,