mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 16:34:10 +00:00
Actually, if the parent of MutterWindow is a container, use the interface.
Just unparenting the window does not automatically remove it from it's parent.
This commit is contained in:
parent
16d49695ad
commit
770a6f0138
@ -972,7 +972,14 @@ mutter_window_effect_completed (MutterWindow *cw, gulong event)
|
|||||||
|
|
||||||
if (priv->needs_destroy && effect_in_progress (cw, TRUE) == FALSE)
|
if (priv->needs_destroy && effect_in_progress (cw, TRUE) == FALSE)
|
||||||
{
|
{
|
||||||
clutter_actor_unparent (CLUTTER_ACTOR (cw));
|
ClutterActor *cwa = CLUTTER_ACTOR (cw);
|
||||||
|
ClutterActor *parent = clutter_actor_get_parent (cwa);
|
||||||
|
|
||||||
|
if (CLUTTER_IS_CONTAINER (parent))
|
||||||
|
clutter_container_remove_actor (CLUTTER_CONTAINER (parent), cwa);
|
||||||
|
else
|
||||||
|
clutter_actor_unparent (cwa);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1040,7 +1047,14 @@ destroy_win (MutterWindow *cw)
|
|||||||
/*
|
/*
|
||||||
* No effects, just kill it.
|
* No effects, just kill it.
|
||||||
*/
|
*/
|
||||||
clutter_actor_unparent (CLUTTER_ACTOR (cw));
|
ClutterActor *cwa = CLUTTER_ACTOR (cw);
|
||||||
|
ClutterActor *parent = clutter_actor_get_parent (cwa);
|
||||||
|
|
||||||
|
if (CLUTTER_IS_CONTAINER (parent))
|
||||||
|
clutter_container_remove_actor (CLUTTER_CONTAINER (parent), cwa);
|
||||||
|
else
|
||||||
|
clutter_actor_unparent (cwa);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1062,7 +1076,15 @@ destroy_win (MutterWindow *cw)
|
|||||||
priv->needs_destroy = TRUE;
|
priv->needs_destroy = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
clutter_actor_unparent (CLUTTER_ACTOR (cw));
|
{
|
||||||
|
ClutterActor *cwa = CLUTTER_ACTOR (cw);
|
||||||
|
ClutterActor *parent = clutter_actor_get_parent (cwa);
|
||||||
|
|
||||||
|
if (CLUTTER_IS_CONTAINER (parent))
|
||||||
|
clutter_container_remove_actor (CLUTTER_CONTAINER (parent), cwa);
|
||||||
|
else
|
||||||
|
clutter_actor_unparent (cwa);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user