Exemple #1
0
static void
on_shadow_factory_changed (MetaShadowFactory *factory,
                           MetaCompositor    *compositor)
{
  GList *l;

  for (l = compositor->windows; l; l = l->next)
    meta_window_actor_invalidate_shadow (l->data);
}
Exemple #2
0
static void
on_shadow_factory_changed (MetaShadowFactory *factory,
                           MetaCompositor    *compositor)
{
    GSList *screens = meta_display_get_screens (compositor->display);
    GList *l;
    GSList *sl;

    for (sl = screens; sl; sl = sl->next)
    {
        MetaScreen *screen = sl->data;
        MetaCompScreen *info = meta_screen_get_compositor_data (screen);
        if (!info)
            continue;

        for (l = info->windows; l; l = l->next)
            meta_window_actor_invalidate_shadow (l->data);
    }
}