mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
stage: Use g_list_foreach instead of manual for loop
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1391
This commit is contained in:
parent
f5958fa473
commit
d8be2a8b85
@ -195,7 +195,6 @@ meta_stage_paint (ClutterActor *actor,
|
||||
{
|
||||
MetaStage *stage = META_STAGE (actor);
|
||||
ClutterStageView *view;
|
||||
GList *l;
|
||||
|
||||
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) &
|
||||
CLUTTER_PAINT_FLAG_NO_CURSORS))
|
||||
{
|
||||
for (l = stage->overlays; l; l = l->next)
|
||||
meta_overlay_paint (l->data, paint_context);
|
||||
}
|
||||
g_list_foreach (stage->overlays, (GFunc) meta_overlay_paint, paint_context);
|
||||
|
||||
if (view)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user