mirror of
https://github.com/brl/mutter.git
synced 2025-07-30 13:38:44 +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:
@@ -815,6 +815,9 @@ _clutter_stage_do_update (ClutterStage *stage)
|
||||
|
||||
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
|
||||
* check or clear the pending redraws flag since a relayout may
|
||||
* queue a redraw.
|
||||
|
Reference in New Issue
Block a user