e_comp_wl_shell: add log for mapping/unmapping window 82/167782/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 22 Jan 2018 05:21:39 +0000 (14:21 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 22 Jan 2018 08:16:43 +0000 (08:16 +0000)
Change-Id: I9eaa61b271623fb15d341db9ecf3b6e8289efab5

src/bin/e_comp_wl_shell.c

index 8b1f527270a0e742f328516bd55122fef8c7971c..ae95bd14e791a3d3ab60506584489973e63ff62b 100644 (file)
@@ -129,7 +129,10 @@ _e_shell_surface_destroy(struct wl_resource *resource)
                {
                   if ((ec->comp_data->shell.surface) &&
                       (ec->comp_data->shell.unmap))
-                    ec->comp_data->shell.unmap(ec->comp_data->shell.surface);
+                    {
+                       ELOGF("SHELL", "Call shell.unmap by destory surface", ec->pixmap, ec);
+                       ec->comp_data->shell.unmap(ec->comp_data->shell.surface);
+                    }
                }
              if (ec->parent)
                {
@@ -142,6 +145,8 @@ _e_shell_surface_destroy(struct wl_resource *resource)
           }
         if (ec->comp_data)
           ec->comp_data->shell.surface = NULL;
+
+        ELOGF("SHELL", "Destroy shell surface", ec->pixmap, ec);
      }
 
    e_policy_client_unmap(ec);
@@ -515,6 +520,12 @@ _e_shell_surface_map(struct wl_resource *resource)
               (unsigned int)e_client_util_win_get(ec),
               ec->w, ec->h, ec->netwm.pid, ec->icccm.title, ec->netwm.name);
 
+        ELOGF("SHELL",
+              "spash:%d, first_mapped:%d, iconic:%d(client:%d), raise:%d, lower:%d, ignore:%d, override:%d, input_only:%d",
+              ec->pixmap, ec,
+              ec->use_splash, ec->first_mapped, ec->iconic, ec->exp_iconify.by_client,
+              ec->post_raise, ec->post_lower, ec->ignored, ec->override, ec->input_only);
+
 
         /* unset previous content */
         e_comp_object_content_unset(ec->frame);
@@ -616,6 +627,7 @@ _e_shell_cb_shell_surface_get(struct wl_client *client, struct wl_resource *reso
         wl_resource_post_no_memory(surface_resource);
         return;
      }
+   ELOGF("SHELL", "Create shell surface", ec->pixmap, ec);
 
    wl_resource_set_implementation(cdata->shell.surface,
                                   &_e_shell_surface_interface,
@@ -1116,6 +1128,12 @@ _e_xdg_shell_surface_map_cb_timer(void *data)
               (unsigned int)e_client_util_win_get(ec),
               ec->w, ec->h, ec->netwm.pid, ec->icccm.title, ec->netwm.name);
 
+        ELOGF("SHELL",
+              "spash:%d, first_mapped:%d, iconic:%d(client:%d), raise:%d, lower:%d, ignore:%d, override:%d, input_only:%d",
+              ec->pixmap, ec,
+              ec->use_splash, ec->first_mapped, ec->iconic, ec->exp_iconify.by_client,
+              ec->post_raise, ec->post_lower, ec->ignored, ec->override, ec->input_only);
+
         if (ec->use_splash)
           {
              ELOGF("LAUNCH", "SHOW real win after splash effect by map_timer", ec->pixmap, ec);
@@ -1226,6 +1244,12 @@ _e_xdg_shell_surface_map(struct wl_resource *resource)
               (unsigned int)e_client_util_win_get(ec),
               ec->w, ec->h, ec->netwm.pid, ec->icccm.title, ec->netwm.name);
 
+        ELOGF("SHELL",
+              "spash:%d, first_mapped:%d, iconic:%d(client:%d), raise:%d, lower:%d, ignore:%d, override:%d, input_only:%d",
+              ec->pixmap, ec,
+              ec->use_splash, ec->first_mapped, ec->iconic, ec->exp_iconify.by_client,
+              ec->post_raise, ec->post_lower, ec->ignored, ec->override, ec->input_only);
+
         if (ec->use_splash)
           {
              ELOGF("LAUNCH", "SHOW real win after splash effect", ec->pixmap, ec);
@@ -1352,6 +1376,7 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
         wl_resource_post_no_memory(surface_resource);
         return;
      }
+   ELOGF("SHELL", "Create xdg shell surface", ec->pixmap, ec);
 
    wl_resource_set_implementation(cdata->shell.surface,
                                   &_e_xdg_surface_interface,
@@ -1441,6 +1466,7 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
         wl_resource_post_no_memory(surface_resource);
         return;
      }
+   ELOGF("SHELL", "Create xdg shell popup surface", ec->pixmap, ec);
 
    wl_resource_set_implementation(cdata->shell.surface,
                                   &_e_xdg_popup_interface,