static void _pol_cb_hook_client_eval_end(void *d EINA_UNUSED, E_Client *ec);
static void _pol_cb_hook_client_fullscreen_pre(void *data EINA_UNUSED, E_Client *ec);
-static void _pol_cb_hook_pixmap_new(void *data EINA_UNUSED, E_Pixmap *cp);
static void _pol_cb_hook_pixmap_del(void *data EINA_UNUSED, E_Pixmap *cp);
static void _pol_cb_desk_data_free(void *data);
}
static void
-_pol_cb_hook_pixmap_new(void *data EINA_UNUSED, E_Pixmap *cp)
-{
- PLOG("PIXMAP NEW", cp, e_pixmap_client_get(cp));
-}
-
-static void
_pol_cb_hook_pixmap_del(void *data EINA_UNUSED, E_Pixmap *cp)
{
- PLOG("PIXMAP DEL", cp, e_pixmap_client_get(cp));
#ifdef HAVE_WAYLAND_ONLY
e_mod_pol_wl_pixmap_del(cp);
#endif
ev = event;
EINA_SAFETY_ON_NULL_RETURN_VAL(ev, ECORE_CALLBACK_PASS_ON);
- PLOG("CLIENT DEL", ev->ec ? ev->ec->pixmap : NULL, ev->ec);
-
#ifdef HAVE_WAYLAND_ONLY
e_mod_pol_wl_client_del(ev->ec);
#endif
ev = event;
EINA_SAFETY_ON_NULL_RETURN_VAL(ev, ECORE_CALLBACK_PASS_ON);
- PLOG("CLIENT ADD", ev->ec ? ev->ec->pixmap : NULL, ev->ec);
-
e_mod_pol_client_window_opaque_set(ev->ec);
return ECORE_CALLBACK_PASS_ON;
E_CLIENT_HOOK_APPEND(hooks_ec, E_CLIENT_HOOK_EVAL_END, _pol_cb_hook_client_eval_end, NULL);
E_CLIENT_HOOK_APPEND(hooks_ec, E_CLIENT_HOOK_FULLSCREEN_PRE, _pol_cb_hook_client_fullscreen_pre, NULL);
- E_PIXMAP_HOOK_APPEND(hooks_cp, E_PIXMAP_HOOK_NEW, _pol_cb_hook_pixmap_new, NULL);
E_PIXMAP_HOOK_APPEND(hooks_cp, E_PIXMAP_HOOK_DEL, _pol_cb_hook_pixmap_del, NULL);
e_mod_pol_rotation_init();
tzpol->res_tzpol = res_tzpol;
- PLOGF("TZPOL",
+ ELOGF("TZPOL",
"HASH_ADD |res:0x%08x|tzpol:0x%08x",
NULL, NULL,
(unsigned int)res_tzpol,
_pol_wl_surf_del(psurf);
}
- PLOGF("TZPOL",
+ ELOGF("TZPOL",
"HASH_DEL |res:0x%08x|tzpol:0x%08x",
NULL, NULL,
(unsigned int)tzpol->res_tzpol,
psurf->cp = cp;
psurf->ec = e_pixmap_client_get(cp);
- PLOGF("POLSURF",
+ ELOGF("POLSURF",
"LIST_ADD |s:0x%08x|tzpol:0x%08x|ps:0x%08x",
psurf->cp,
psurf->ec,
static void
_pol_wl_surf_del(Pol_Wl_Surface *psurf)
{
- PLOGF("POLSURF",
+ ELOGF("POLSURF",
"LIST_DEL |s:0x%08x|tzpol:0x%08x|ps:0x%08x|pending_notilv:%d",
psurf->cp,
psurf->ec,
}
// --------------------------------------------------------
-// util funcs
-// --------------------------------------------------------
-static void
-_pol_wl_pname_print(pid_t pid)
-{
- FILE *h;
- char proc[512], pname[512];
- size_t len;
-
- sprintf(proc, "/proc/%d/cmdline", pid);
-
- h = fopen(proc, "r");
- if (!h) return;
-
- len = fread(pname, sizeof(char), 512, h);
- if (len > 0)
- {
- if ('\n' == pname[len - 1])
- pname[len - 1] = '\0';
- }
-
- fclose(h);
-
- PLOGF("TZPOL", " |%s", NULL, NULL, pname);
-}
-
-// --------------------------------------------------------
// visibility
// --------------------------------------------------------
static void
psurf->notilv = lv;
- PLOGF("TZPOL",
+ ELOGF("TZPOL",
"NOTI_DONE|s:0x%08x|res_tzpol:0x%08x|psurf:0x%08x|lv%d",
cp, ec,
(unsigned int)surf,
E_Client *ec, *pc;
struct wl_resource *parent_surf;
- PLOGF("TZPOL",
+ ELOGF("TZPOL",
"TF_SET |res_tzpol:0x%08x|parent:%d|child:%d",
NULL, NULL, (unsigned int)res_tzpol, parent_id, child_id);
_pol_wl_parent_surf_set(ec, parent_surf);
- PLOGF("TZPOL",
+ ELOGF("TZPOL",
" |parent|s:0x%08x",
pc->pixmap, pc, (unsigned int)parent_surf);
- PLOGF("TZPOL",
+ ELOGF("TZPOL",
" |child |s:0x%08x",
ec->pixmap, ec,
(unsigned int)(ec->comp_data ? ec->comp_data->surface : NULL));
{
E_Client *ec;
- PLOGF("TZPOL",
+ ELOGF("TZPOL",
"TF_UNSET |res_tzpol:0x%08x|child:%d",
NULL, NULL, (unsigned int)res_tzpol, child_id);
{
Pol_Wl_Tzpol *tzpol;
struct wl_client *client;
- pid_t pid = 0;
- uid_t uid = 0;
- gid_t gid = 0;
tzpol = _pol_wl_tzpol_get(res_tzpol);
EINA_SAFETY_ON_NULL_RETURN(tzpol);
eina_hash_del_by_key(polwl->tzpols, &res_tzpol);
client = wl_resource_get_client(res_tzpol);
- if (client) wl_client_get_credentials(client, &pid, &uid, &gid);
- PLOGF("TZPOL",
- "UNBIND |client:0x%08x|%d|%d|%d",
- NULL, NULL, (unsigned int)client, pid, uid, gid);
+ ELOGF("TZPOL",
+ "UNBIND |client:0x%08x",
+ NULL, NULL, (unsigned int)client);
}
static void
_tzpol_cb_bind(struct wl_client *client, void *data EINA_UNUSED, uint32_t ver, uint32_t id)
{
struct wl_resource *res_tzpol;
- pid_t pid = 0;
- uid_t uid = 0;
- gid_t gid = 0;
EINA_SAFETY_ON_NULL_GOTO(polwl, err);
NULL,
_tzpol_cb_unbind);
- wl_client_get_credentials(client, &pid, &uid, &gid);
-
- PLOGF("TZPOL",
- "BIND |client:0x%08x|%d|%d|%d",
- NULL, NULL, (unsigned int)client, pid, uid, gid);
-
- _pol_wl_pname_print(pid);
+ ELOGF("TZPOL",
+ "BIND |client:0x%08x",
+ NULL, NULL, (unsigned int)client);
_pol_wl_tzpol_add(res_tzpol);
return;