mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
stage: Ignore redraws on destroyed stages
We might get requests to redraw even during destruction; we should ignore them and do some NULL checks instead of blindly invoking functions.
This commit is contained in:
parent
7b6b2ea55b
commit
f2d0f0ab5f
@ -771,6 +771,13 @@ gboolean
|
||||
_clutter_stage_has_full_redraw_queued (ClutterStage *stage)
|
||||
{
|
||||
ClutterStageWindow *stage_window = _clutter_stage_get_window (stage);
|
||||
gboolean in_destruction;
|
||||
|
||||
in_destruction =
|
||||
((CLUTTER_PRIVATE_FLAGS (stage) & CLUTTER_ACTOR_IN_DESTRUCTION) != FALSE);
|
||||
|
||||
if (in_destruction || stage_window == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (stage->priv->redraw_pending &&
|
||||
!_clutter_stage_window_has_redraw_clips (stage_window))
|
||||
|
Loading…
Reference in New Issue
Block a user