[Compcomm] Animation plugin, minimize trigger

Danny Baumann dannybaumann at web.de
Tue May 8 01:41:45 EDT 2007


Hi,

> > If you want to go ahead and do it, that's ok with me. Btw, what is it
> > with the 3rd field of the CompMetadataOptionInfo structure? Why do we
> > only give <min> for float, and <min>&<max > for int, and nothing for
> > string? Such as:
> >
> > +    { "friction", "float", "<min>0.1</min>", 0, 0 },
> > +    { "spring_k", "float", "<min>0.1</min>", 0, 0 },
> > +    { "grid_resolution", "int", "<min>1</min><max>64</max>", 0, 0 },
> > +    { "min_grid_size", "int", "<min>4</min><max>128</max", 0, 0 },
> > +    { "map_effect", "string", 0, 0, 0 },

The third field contains essential metadata. Which metadata is essential
depends on the option. If you have an int or float value and your
calculations are screwed whenever this value becomes negative, but there
are no problems otherwise, you only add the <min> tag. If you e.g. have
a percentage, you add both <min>0</min> and <max>100</max>. Another
essential metadata e.g. is the list type for list options.

> Ok, I found the cause of the problem. Minimize plugin has this
> condition to animate minimization:
>    minGetWindowIconGeometry (w, &mw->icon)
> 
> while Animation doesn't, because I'm animating minimization of windows
> even when there is no window list applet (they minimize toward
> bottom-middle). Minimize plugin doesn't animate minimization in that
> case. The question is, is there a good way to distinguish the
> minimization cases such that
> 
> - show-desktop minimizes all windows.
> - switcher window and other "hidden windows" don't get animated as minimization.
> - when there is no window list applet (or no window icon geometry),
> windows minimize toward bottom-middle (do we still want to do this
> btw?)
> 
> If we drop the 3rd requirement, everything would be fine (since then I
> can do minimization initiation like Minimize plugin does). What do you
> think?

IMO we can drop the third requirement. From the top of my head I see no
real use case for that (99.9% of all people will have some sort of
taskbar applet/dock anyway). Additionally, the result can even be pretty
unexpected as you can see in the switcher window example ;-)
Perhaps it would be possible to allow minimize animations for windows
without icon geometry with non-icon geometry dependent animations like
fade? 
So if there is no icon geometry and the user selects "Magic Lamp", he won't get any animation; but if he selects "Fade", the window will be faded out.

Regards,

Danny




More information about the CompComm mailing list