stage: Use g_list_foreach instead of manual for loop

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1391
This commit is contained in:
Jonas Ådahl 2020-07-29 10:12:13 +02:00
parent f5958fa473
commit d8be2a8b85

View File

@ -195,7 +195,6 @@ meta_stage_paint (ClutterActor *actor,
{ {
MetaStage *stage = META_STAGE (actor); MetaStage *stage = META_STAGE (actor);
ClutterStageView *view; ClutterStageView *view;
GList *l;
CLUTTER_ACTOR_CLASS (meta_stage_parent_class)->paint (actor, paint_context); CLUTTER_ACTOR_CLASS (meta_stage_parent_class)->paint (actor, paint_context);
@ -210,10 +209,7 @@ meta_stage_paint (ClutterActor *actor,
if (!(clutter_paint_context_get_paint_flags (paint_context) & if (!(clutter_paint_context_get_paint_flags (paint_context) &
CLUTTER_PAINT_FLAG_NO_CURSORS)) CLUTTER_PAINT_FLAG_NO_CURSORS))
{ g_list_foreach (stage->overlays, (GFunc) meta_overlay_paint, paint_context);
for (l = stage->overlays; l; l = l->next)
meta_overlay_paint (l->data, paint_context);
}
if (view) if (view)
{ {