evas: Always call show/hide intercept
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 27 Jul 2017 06:45:37 +0000 (15:45 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 27 Jul 2017 06:53:43 +0000 (15:53 +0900)
Ref T5370

src/lib/evas/canvas/evas_object_intercept.c

index e627daa..9ce9d0b 100644 (file)
@@ -100,10 +100,13 @@ _evas_object_intercept_call_internal(Evas_Object *eo_obj,
      {
       case EVAS_OBJECT_INTERCEPT_CB_VISIBLE:
         i = !!va_arg(args, int);
-        if (i == obj->cur->visible) return 1;
-        if (!obj->interceptors) return 0;
-        if (i) blocked = evas_object_intercept_call_show(eo_obj, obj);
-        else blocked = evas_object_intercept_call_hide(eo_obj, obj);
+        if (obj->interceptors)
+          {
+             if (i) blocked = evas_object_intercept_call_show(eo_obj, obj);
+             else blocked = evas_object_intercept_call_hide(eo_obj, obj);
+          }
+        if (!blocked && (i == obj->cur->visible))
+          blocked = 1;
         break;
 
       case EVAS_OBJECT_INTERCEPT_CB_MOVE: