If a window request to set transient_for(or parent), we rearrange parent's transient list.
So, the window is placed on the top of siblings or under the bottom of siblings.
Change-Id: Ie0fad8a3def35779f90775e713fbf7315c87a9c1
/* If we already have a parent, remove it */
if (ec->parent)
{
- if (parent != ec->parent)
- {
- ec->parent->transients =
- eina_list_remove(ec->parent->transients, ec);
- if (ec->parent->modal == ec) ec->parent->modal = NULL;
- ec->parent = NULL;
- }
- else
- parent = NULL;
+ ec->parent->transients =
+ eina_list_remove(ec->parent->transients, ec);
+ if (ec->parent->modal == ec) ec->parent->modal = NULL;
+ ec->parent = NULL;
}
if ((parent) && (parent != ec) &&