Comment 7 for bug 1017510

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Difficulty: Easy
Method: In UnityWindow::windowNotify (CompWindowNotify n) track the number of times CompWindowNotifyMinimize comes in -> save it to a GSettings key, once it surpasses a certain number, you can change the option in the plugin like this:

CompPlugin *p = screen->findPlugin ("animation");

if (p)
{
     CompOption::Vector &options = p->vTable->getOptions ();

     foreach (CompOption &o, options)
     {
        if (o.name () == "minimize_animations" )
        .... (scan list for first minimize animation for "normal" windows and change the value to something slower.