mirror of
https://github.com/brl/mutter.git
synced 2025-03-25 04:33:52 +00:00
stage: Do not update when destroying a stage
During the stage destruction we should just skip event processing, since we cannot guarantee that the stage is actually valid.
This commit is contained in:
parent
901ed32568
commit
f133d84c02
@ -815,6 +815,9 @@ _clutter_stage_do_update (ClutterStage *stage)
|
|||||||
|
|
||||||
priv = stage->priv;
|
priv = stage->priv;
|
||||||
|
|
||||||
|
if (CLUTTER_ACTOR_IN_DESTRUCTION (stage))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
/* NB: We need to ensure we have an up to date layout *before* we
|
/* NB: We need to ensure we have an up to date layout *before* we
|
||||||
* check or clear the pending redraws flag since a relayout may
|
* check or clear the pending redraws flag since a relayout may
|
||||||
* queue a redraw.
|
* queue a redraw.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user