add window's information for debugging log 34/141434/1 submit/tizen/20170731.114126
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 31 Jul 2017 10:47:47 +0000 (19:47 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 31 Jul 2017 10:48:14 +0000 (19:48 +0900)
We added window's information (pid, title, name) for debugging log
when the window is mapped or sent visibility event.

Change-Id: I7cb36ab42af6f96251b59eb56014693bced3c258

src/bin/e_policy_wl.c
src/modules/wl_desktop_shell/e_mod_main.c

index 7244c71ad626b32c73b68671d4423b7c5625bade..79d53c91c76d558d96c8ad06b052621df14ed8fd 100644 (file)
@@ -1137,12 +1137,13 @@ e_policy_wl_visibility_send(E_Client *ec, int vis)
                  }
 
                ELOGF("TZVIS",
-                     "SEND     |win:0x%08x|res_tzvis:0x%08x|ver:%d|sent_vis:%d",
+                     "SEND     |win:0x%08x|res_tzvis:0x%08x|ver:%d|sent_vis:%d|pid:%d|title:%s, name:%s",
                      ec->pixmap, ec,
                      (unsigned int)win,
                      (unsigned int)res_tzvis,
                      ver,
-                     sent_vis);
+                     sent_vis,
+                     ec->netwm.pid, ec->icccm.title, ec->netwm.name);
                sent = EINA_TRUE;
                if (ec->comp_data->mapped)
                  {
index e7752cd560b599a792b7fda7102ec98aaea5e7a0..b9ada4aacdb970cc43c73405fdd8929ae076abb4 100644 (file)
@@ -511,10 +511,11 @@ _e_shell_surface_map(struct wl_resource *resource)
    if ((!ec->comp_data->mapped) && (e_pixmap_usable_get(ec->pixmap)))
      {
         ELOGF("SHELL",
-              "Map window  |win:0x%08x|ec_size:%d,%d",
+              "Map window  |win:0x%08x|ec_size:%d,%d|pid:%d|title:%s, name:%s",
               ec->pixmap, ec,
               (unsigned int)e_client_util_win_get(ec),
-              ec->w, ec->h);
+              ec->w, ec->h, ec->netwm.pid, ec->icccm.title, ec->netwm.name);
+
 
         /* unset previous content */
         e_comp_object_content_unset(ec->frame);
@@ -1111,10 +1112,10 @@ _e_xdg_shell_surface_map_cb_timer(void *data)
    if ((!ec->comp_data->mapped) && (e_pixmap_usable_get(ec->pixmap)))
      {
         ELOGF("SHELL",
-              "Map window by map_timer |win:0x%08x|ec_size:%d,%d",
+              "Map window by map_timer |win:0x%08x|ec_size:%d,%d|pid:%d|title:%s, name:%s",
               ec->pixmap, ec,
               (unsigned int)e_client_util_win_get(ec),
-              ec->w, ec->h);
+              ec->w, ec->h, ec->netwm.pid, ec->icccm.title, ec->netwm.name);
 
         if (ec->use_splash)
           {
@@ -1219,10 +1220,10 @@ _e_xdg_shell_surface_map(struct wl_resource *resource)
         E_FREE_FUNC(ec->map_timer, ecore_timer_del);
 
         ELOGF("SHELL",
-              "Map window  |win:0x%08x|ec_size:%d,%d",
+              "Map window  |win:0x%08x|ec_size:%d,%d|pid:%d|title:%s, name:%s",
               ec->pixmap, ec,
               (unsigned int)e_client_util_win_get(ec),
-              ec->w, ec->h);
+              ec->w, ec->h, ec->netwm.pid, ec->icccm.title, ec->netwm.name);
 
         if (ec->use_splash)
           {