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.
Difficulty: Easy :windowNotify (CompWindowNotify n) track the number of times CompWindowNotif yMinimize comes in -> save it to a GSettings key, once it surpasses a certain number, you can change the option in the plugin like this:
Method: In UnityWindow:
CompPlugin *p = screen->findPlugin ("animation");
if (p) ::Vector &options = p->vTable- >getOptions ();
{
CompOption
foreach (CompOption &o, options) animations" )
{
if (o.name () == "minimize_
.... (scan list for first minimize animation for "normal" windows and change the value to something slower.