Re: FVWM: menu animation stopped working?

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Sat, 13 Mar 1999 19:05:52 +0100

On Fri, Mar 12, 1999 at 02:15:18PM +0100, Dominik Vogt wrote:
> On Fri, Mar 12, 1999 at 06:01:01AM -0800, xyzzy_at_u.washington.edu wrote:
> > I've recently switched from fvwm 2.1.6 to fvwm 2.2. My menus are no longer
> > animated. ie. when a submenu appears near the edge of the screen the menu
> > doesn't slide over the make more room. It appears that animation doesn't work
> > unless the second argument to popupoffset is >=100. For example
> >
> > menustyle * popupoffset 0 67, Animation # no animation
> > menustyle * popupoffset 0 100, Animation # yes animation
> > menustyle * popupoffset 50 99, Animation # no animation
>
> animation should occur whenever the menus overlap more than
> the popupoffset suggests. E.g. with '0 67' the parent menu
> should be animated away if the overlap if bigger than 33%
> (wich doesn't occur normally), give or take a few pixels.

OK, right. I've fixed it in 2.3.x. Could somebody apply this to
2.2.1 too, please? You have to change this line in menus.c
(DoMenusOverlap)

      prior_width *= mr->ms->feel.PopupOffsetPercent / 100;

to this:

      prior_width *= (float)(mr->ms->feel.PopupOffsetPercent) / 100.0;

Bye

Dominik

--
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Mar 14 1999 - 06:05:15 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST