alias x11 pixmaps to parent windows during reparent

failure to allow pixmaps/clients to be retrived by parent window will
result in api users being greatly inconvenienced after a reparenting has
occurred
This commit is contained in:
Mike Blumenkrantz 2015-09-17 16:36:38 -04:00
parent 441e266a83
commit 1f3e730964
1 changed files with 2 additions and 0 deletions

View File

@ -2996,6 +2996,7 @@ _e_comp_x_hook_client_pre_frame_assign(void *d EINA_UNUSED, E_Client *ec)
if (!ec->internal)
ecore_x_window_save_set_add(win);
ecore_x_window_reparent(win, pwin, 0, 0);
e_pixmap_alias(ep, E_PIXMAP_TYPE_X, pwin);
{
unsigned int managed = 1;
@ -4457,6 +4458,7 @@ _e_comp_x_hook_client_del(void *d EINA_UNUSED, E_Client *ec)
ecore_x_window_reparent(win, e_comp->root,
cd->initial_attributes.x,
cd->initial_attributes.y);
e_pixmap_alias(NULL, E_PIXMAP_TYPE_X, pwin);
if (!ec->internal)
ecore_x_window_save_set_del(win);
}