e_comp_wl: not creating mask_obj if black_bg_rectangle created 01/153301/2
authorBoram Park <boram1288.park@samsung.com>
Thu, 28 Sep 2017 08:10:05 +0000 (17:10 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 28 Sep 2017 08:17:57 +0000 (17:17 +0900)
Change-Id: I915d684de385da203bc4931d0d34ee4fd0ef3360

src/bin/e_comp_wl.c

index 70e534a4d0695bb8b1efdd373c1cdeab47afa4f0..f8729e458386304be153ab1d1ee298da75e2bf12 100644 (file)
@@ -3434,31 +3434,6 @@ _e_comp_wl_subsurface_bg_evas_cb_resize(void *data, Evas *evas EINA_UNUSED, Evas
       evas_object_resize(ec->comp_data->sub.below_obj, ec->w, ec->h);
 }
 
-static void
-_e_comp_wl_subsurface_mask_set(E_Client *ec)
-{
-   E_Client *subc;
-   Eina_List *l;
-
-   if (!ec) return;
-   if (e_object_is_del(E_OBJECT(ec))) return;
-   if (!ec->comp_data) return;
-
-   /* if a leaf client is not video cliet */
-   if (!ec->comp_data->sub.below_list && !ec->comp_data->sub.below_list_pending && ec->comp_data->video_client)
-     if (ec->comp_data->video_client && !e_comp_object_mask_has(ec->frame))
-       {
-          e_comp_object_mask_set(ec->frame, EINA_TRUE);
-          return;
-       }
-
-   EINA_LIST_FOREACH(ec->comp_data->sub.below_list_pending, l, subc)
-     _e_comp_wl_subsurface_mask_set(subc);
-
-   EINA_LIST_FOREACH(ec->comp_data->sub.below_list, l, subc)
-     _e_comp_wl_subsurface_mask_set(subc);
-}
-
 static void
 _e_comp_wl_subsurface_check_below_bg_rectangle(E_Client *ec)
 {
@@ -3520,8 +3495,6 @@ _e_comp_wl_subsurface_check_below_bg_rectangle(E_Client *ec)
 
         if (evas_object_visible_get(ec->frame))
           evas_object_show(ec->comp_data->sub.below_obj);
-
-        _e_comp_wl_subsurface_mask_set(ec);
      }
 }