e_policy_conformant: add log for ec's window info 62/144162/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 15 Aug 2017 08:46:07 +0000 (17:46 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 15 Aug 2017 11:42:40 +0000 (11:42 +0000)
Change-Id: Icdafca676700283683062244492084db7be5de36

src/bin/e_policy_conformant.c

index 8e1531703fb61776176cec8282779a811127dc44..5a5a44d03678b9af2ece7c0dcccfc2fad079e8d8 100644 (file)
@@ -181,9 +181,12 @@ _conf_state_update(Conformant_Type type, Eina_Bool visible, int x, int y, int w,
 
    cfc = eina_hash_find(g_conf->client_hash, &g_conf->part[type].owner);
    if (!cfc)
-     return;
+     {
+        DBG("NO conformant Client found");
+        return;
+     }
 
-   DBG("\t=> '%s'(%p)", cfc->ec ? (cfc->ec->icccm.name ?:"") : "", cfc->ec);
+   DBG("\t=> '%s'(win:%x, ec:%p)", cfc->ec ? (cfc->ec->icccm.name ?:"") : "", e_client_util_win_get(cfc->ec), cfc->ec);
    EINA_LIST_FOREACH(cfc->res_list, l, cres)
      {
         cres->ack_done = EINA_FALSE;
@@ -529,7 +532,7 @@ _conf_cb_part_obj_show(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
    if (!g_conf)
      return;
 
-   DBG("PART %s ec(%p) Show", _conf_type_to_str(type), g_conf->part[type].ec);
+   DBG("PART %s win(%x), ec(%p) Show", _conf_type_to_str(type), e_client_util_win_get(g_conf->part[type].ec), g_conf->part[type].ec);
 
    owner = _conf_part_owner_find(g_conf->part[type].ec, type);
    g_conf->part[type].owner = owner;
@@ -548,7 +551,7 @@ _conf_cb_part_obj_hide(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
    if (!g_conf)
      return;
 
-   DBG("PART %s ec(%p) Hide", _conf_type_to_str(type), g_conf->part[type].ec);
+   DBG("PART %s win(%x), ec(%p) Hide", _conf_type_to_str(type), e_client_util_win_get(g_conf->part[type].ec), g_conf->part[type].ec);
    _conf_state_update(type,
                       EINA_FALSE,
                       g_conf->part[type].state.x,
@@ -570,7 +573,7 @@ _conf_cb_part_obj_hiding(void *data, Evas_Object *obj EINA_UNUSED, void *event_i
    if (!g_conf)
      return;
 
-   DBG("PART %s ec(%p) Hiding", _conf_type_to_str(type), g_conf->part[type].ec);
+   DBG("PART %s win(%x), ec(%p) Hiding", _conf_type_to_str(type), e_client_util_win_get(g_conf->part[type].ec), g_conf->part[type].ec);
    _conf_state_update(type,
                       EINA_FALSE,
                       g_conf->part[type].state.x,
@@ -587,7 +590,7 @@ _conf_cb_part_obj_move(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
    if (!g_conf)
      return;
 
-   DBG("PART %s ec(%p) Move", _conf_type_to_str(type), g_conf->part[type].ec);
+   DBG("PART %s win(%x), ec(%p) Move", _conf_type_to_str(type), e_client_util_win_get(g_conf->part[type].ec), g_conf->part[type].ec);
 
    g_conf->part[type].changed = 1;
 }
@@ -600,7 +603,7 @@ _conf_cb_part_obj_resize(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_
    if (!g_conf)
      return;
 
-   DBG("PART %s ec(%p) Resize", _conf_type_to_str(type), g_conf->part[type].ec);
+   DBG("PART %s win(%x), ec(%p) Resize", _conf_type_to_str(type), e_client_util_win_get(g_conf->part[type].ec), g_conf->part[type].ec);
 
    g_conf->part[type].changed = 1;
 }
@@ -746,7 +749,7 @@ _conf_cb_client_rot_change_cancel(void *data, int evtype EINA_UNUSED, void *even
 
    if (g_conf->part[type].state.restore)
      {
-        DBG("Rotation Cancel %s ec(%p)", _conf_type_to_str(type), ev->ec);
+        DBG("Rotation Cancel %s win(%x), ec(%p)", _conf_type_to_str(type), e_client_util_win_get(ev->ec), ev->ec);
         _conf_state_update(type,
                            EINA_TRUE,
                            g_conf->part[type].state.x,
@@ -803,7 +806,7 @@ _conf_cb_intercept_hook_hide(void *data EINA_UNUSED, E_Client *ec)
 
    pre_serial = wl_display_next_serial(e_comp_wl->wl.disp);
 
-   DBG("PART %s ec(%p) Intercept Hide", _conf_type_to_str(type), g_conf->part[type].ec);
+   DBG("PART %s win(%x) ec(%p) Intercept Hide", _conf_type_to_str(type), e_client_util_win_get(g_conf->part[type].ec), g_conf->part[type].ec);
    _conf_state_update(type,
                       EINA_FALSE,
                       g_conf->part[type].state.x,
@@ -1057,7 +1060,7 @@ e_policy_conformant_client_add(E_Client *ec, struct wl_resource *res)
    EINA_SAFETY_ON_NULL_RETURN(g_conf);
    EINA_SAFETY_ON_NULL_RETURN(ec);
 
-   DBG("Client Add '%s'(%p)", ec->icccm.name ? ec->icccm.name : "", ec);
+   DBG("Client Add '%s'(win:%x, ec:%p)", ec->icccm.name ? ec->icccm.name : "", e_client_util_win_get(ec), ec);
 
    if (g_conf->client_hash)
      {
@@ -1088,7 +1091,7 @@ e_policy_conformant_client_del(E_Client *ec)
    EINA_SAFETY_ON_NULL_RETURN(g_conf);
    EINA_SAFETY_ON_NULL_RETURN(ec);
 
-   DBG("Client Del '%s'(%p)", ec->icccm.name ? ec->icccm.name : "", ec);
+   DBG("Client Del '%s'(win:%x, ec:%p)", ec->icccm.name ? ec->icccm.name : "", e_client_util_win_get(ec), ec);
 
    cfc = eina_hash_find(g_conf->client_hash, &ec);
    if (cfc)
@@ -1130,7 +1133,7 @@ e_policy_conformant_client_ack(E_Client *ec, struct wl_resource *res, uint32_t s
           {
              if (serial == cres->serial)
                {
-                  DBG("Ack conformant region ec(%p) res(%p) serial(%u)", ec, res, serial);
+                  DBG("Ack conformant region win(%x) ec(%p) res(%p) serial(%u)", e_client_util_win_get(ec), ec, res, serial);
                   cres->ack_done = EINA_TRUE;
                }
              break;