clear parent's list of transients, when set parent to NULL.

Summary: we also need to clear parent's resource.

Test Plan: N/A

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1238
This commit is contained in:
Seunghun Lee 2014-07-26 10:13:02 -04:00 committed by Chris Michael
parent 814b50f7e6
commit 89b2881476
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,13 @@ _e_shell_surface_parent_set(E_Client *ec, struct wl_resource *parent_resource)
{
ec->icccm.fetch.transient_for = EINA_FALSE;
ec->icccm.transient_for = 0;
ec->parent = NULL;
if (ec->parent)
{
ec->parent->transients =
eina_list_remove(ec->parent->transients, ec);
if (ec->parent->modal == ec) ec->parent->modal = NULL;
ec->parent = NULL;
}
return;
}
else if (!(pp = wl_resource_get_user_data(parent_resource)))