static void run_default_effect_handler (MetaEffect *effect) { switch (effect->type) { case META_EFFECT_MINIMIZE: draw_box_animation (effect->window->screen, &(effect->u.minimize.window_rect), &(effect->u.minimize.icon_rect), META_MINIMIZE_ANIMATION_LENGTH, effect->priv->finished, effect->priv->finished_data); break; case META_EFFECT_UNMINIMIZE: draw_box_animation (effect->window->screen, &(effect->u.minimize.icon_rect), &(effect->u.minimize.window_rect), META_UNMINIMIZE_ANIMATION_LENGTH, effect->priv->finished, effect->priv->finished_data); break; default: break; } }
static void run_default_effect_handler (MetaEffect *effect) { switch (effect->type) { case META_EFFECT_MINIMIZE: draw_box_animation (effect->window->screen, &(effect->u.minimize.window_rect), &(effect->u.minimize.icon_rect), META_MINIMIZE_ANIMATION_LENGTH); break; case META_EFFECT_UNMINIMIZE: case META_EFFECT_FOCUS: case META_EFFECT_CLOSE: case META_NUM_EFFECTS: break; default: break; } }