surface prop add : subsurface, video client info 99/94799/5
authorSungbae Park <sb34.park@samsung.com>
Tue, 1 Nov 2016 08:29:36 +0000 (17:29 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 3 Nov 2016 02:50:21 +0000 (19:50 -0700)
Signed-off-by: Sungbae Park <sb34.park@samsung.com>
Change-Id: Iedce9d995a913007988472f5ec9a2244815730a9
Signed-off-by: Sungbae Park <sb34.park@samsung.com>
src/bin/e_info_server.c

index 0c4d8fcd7234de33124cb904d5fd3a2e122b3c1a..b672be282370e3cab80b2ac813fea8d94f3b27c0 100644 (file)
@@ -483,6 +483,7 @@ _msg_window_prop_client_append(Eldbus_Message_Iter *iter, E_Client *target_ec)
    __WINDOW_PROP_ARG_APPEND("Maximize_override", target_ec->maximize_override ? char_True : char_False);
    __WINDOW_PROP_ARG_APPEND("Transformed", target_ec->transformed ? char_True : char_False);
    __WINDOW_PROP_ARG_APPEND_TYPE("Ignore_first_unmap", "%c", target_ec->ignore_first_unmap);
+   __WINDOW_PROP_ARG_APPEND_TYPE("Video Client", "%d",target_ec->comp_data ? target_ec->comp_data->video_client : 0);
 
    if (target_ec->comp_data)
      {
@@ -496,6 +497,41 @@ _msg_window_prop_client_append(Eldbus_Message_Iter *iter, E_Client *target_ec)
           }
      }
 
+   if (target_ec->comp_data)
+     {
+        int i;
+        E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)target_ec->comp_data;
+
+        if (cdata->sub.data)
+          {
+             __WINDOW_PROP_ARG_APPEND_TYPE("Subsurface Parent", "0x%x", e_client_util_win_get(cdata->sub.data->parent));
+          }
+        else
+          {
+             __WINDOW_PROP_ARG_APPEND_TYPE("Subsurface Parent", "0x%x", 0);
+          }
+
+        for ( i = 0 ; i < 2 ; ++i)
+          {
+             Eina_List *list;
+             Eina_List *l;
+             E_Client *child;
+             char buffer[256] = {0,};
+
+             if (i == 0) list = cdata->sub.list;
+             else        list = cdata->sub.below_list;
+
+
+             EINA_LIST_FOREACH(list, l, child)
+               {
+                  snprintf(buffer + strlen(buffer), sizeof(buffer) - strlen(buffer) - 1, "0x%x, ", e_client_util_win_get(child));
+               }
+
+             if (i == 0) __WINDOW_PROP_ARG_APPEND("Subsurface Child List", buffer);
+             else        __WINDOW_PROP_ARG_APPEND("Subsurface Below Child List", buffer);
+          }
+     }
+
    __WINDOW_PROP_ARG_APPEND_TYPE("Transform_count", "%d", e_client_transform_core_transform_count_get(target_ec));
    if (e_client_transform_core_transform_count_get(target_ec) > 0)
      {