From 27a84fb7a7c1fc4c1869f409c4ef13dfaa23bd62 Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Wed, 29 Jul 2020 13:05:03 +0900 Subject: [PATCH] e_client/e_policy_wl: add log for debugging Change-Id: Ib3ef8bea1efa8431c2f54886106d44832ce6b13c --- src/bin/e_client.c | 6 +++--- src/bin/e_policy_wl.c | 15 +++++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index 90124b4..8feaba7 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -3444,13 +3444,13 @@ _e_client_visibility_zone_calculate(E_Zone *zone) /* previous state is obscured: -1 or 1 */ ec->visibility.obscured = E_VISIBILITY_UNOBSCURED; ec->visibility.changed = 1; - ELOGF("POL_VIS", "CLIENT VIS ON. argb:%d, opaque:%2d, frame_v:%d", ec, ec->argb, ec->visibility.opaque, ec_frame_visible); + ELOGF("POL_VIS", "CLIENT VIS ON. argb:%d, opaque:%2d, frame_v:%d, cdata:%p", ec, ec->argb, ec->visibility.opaque, ec_frame_visible, cdata); } else { if (!is_above_rot_pending) is_vis_on_skip = EINA_TRUE; - ELOGF("POL_VIS", "CLIENT VIS ON-SKIP. argb:%d, opaque:%2d, frame_v:%d", ec, ec->argb, ec->visibility.opaque, ec_frame_visible); + ELOGF("POL_VIS", "CLIENT VIS ON-SKIP. argb:%d, opaque:%2d, frame_v:%d, cdata:%p", ec, ec->argb, ec->visibility.opaque, ec_frame_visible, cdata); } } @@ -4362,7 +4362,7 @@ e_client_new(E_Pixmap *cp, int first_map, int internal) e_comp->clients = eina_list_append(e_comp->clients, ec); eina_hash_add(clients_hash[e_pixmap_type_get(cp)], &ec->pixmap, ec); - ELOGF("COMP", "CLIENT ADD. cp:%p, argb:%d", ec, cp, ec->argb); + ELOGF("COMP", "CLIENT ADD. cp:%p, argb:%d, internal:%d", ec, cp, ec->argb, internal); if (!ec->ignored) _e_client_event_add(ec); e_comp_object_client_add(ec); diff --git a/src/bin/e_policy_wl.c b/src/bin/e_policy_wl.c index 6130c83..783c509 100644 --- a/src/bin/e_policy_wl.c +++ b/src/bin/e_policy_wl.c @@ -1244,19 +1244,20 @@ e_policy_wl_visibility_send(E_Client *ec, int vis) sent_vis = -3; } + if (ec->comp_data && ec->comp_data->mapped) + { + _launch_effect_hide(ec->netwm.pid); + } + ELOGF("POL_VIS", - "SEND |win:0x%08zx|res_tzvis:%8p|ver:%d|sent_vis:%d|pid:%d|title:%s, name:%s", + "SEND |win:0x%08zx|res_tzvis:%8p|ver:%d|sent_vis:%d|pid:%d|cdata:%8p|title:%s, name:%s", ec, win, res_tzvis, ver, sent_vis, - ec->netwm.pid, ec->icccm.title, ec->netwm.name); + ec->netwm.pid, ec->comp_data, ec->icccm.title, ec->netwm.name); sent = EINA_TRUE; - if (ec->comp_data->mapped) - { - _launch_effect_hide(ec->netwm.pid); - } } } eina_iterator_free(it); @@ -6560,6 +6561,8 @@ _tzlaunch_effect_iface_cb_create_splash_img(struct wl_client *client, struct wl_ plaunch_splash = _tzlaunch_splash_add(res_tzlaunch_effect, res_tzlaunch_splash); EINA_SAFETY_ON_NULL_GOTO(plaunch_splash, err); + ELOGF("TZPOL", "Launchscreen effect create splash img. res_tzlaunch_effect:%p, res_tzlaunch_splash:%p", plaunch_splash->ec, res_tzlaunch_effect, res_tzlaunch_splash); + wl_resource_set_implementation(res_tzlaunch_splash, &_tzlaunch_splash_iface, plaunch_splash, -- 2.7.4