Re: FVWM: FvwmButtons: popup on button down?

From: Charles Hines <>
Date: Wed, 29 Nov 1995 16:43:09 -0500

>>>>> "gm" == Gregory Margo <gmargo_at_newton.vip.best.com> writes:

gm> I use a popup menu on the button bar to take my ppp link up/down.
gm> In order to popup the menu, I have to click and release mouse
gm> button 1 on the appropriate button.
>>
gm> What I really want is to have the menu popup on a "button down"
gm> event, not "button up", just like the root menus. Is there any
gm> way to do this?
>>
gm> Here are the appropriate sections from .fvwm2rc (2.0.39)
>>
gm> AddToMenu "PPP" "PPP" Title
gm> + "PPP-up" Exec exec /usr/local/bin/pppup > /dev/console 2>&1 &
gm> + "PPP-down" Exec exec /usr/local/bin/pppdown > /dev/console 2>&1 &
>>
gm> *FvwmButtons PPP calvin2-trans.xpm Menu "PPP"
>>
gm> If this is an rtfm, let me know and I'll read it more closely.
>>
>> It is, more or less. Try using 'Popup "PPP"' instead of 'Menu "PPP"'
>>
>> Chuck


gm> Both 'Popup "PPP"' and 'Menu "PPP"' act identically. Both wait
gm> for the button up event. I tried the following configuration,
gm> with nothing else defined on the button bar. There was no
gm> difference in their behavior. Must have to do with the Exec?

gm> *FvwmButtons PPP calvin2-trans.xpm Menu "PPP"
gm> *FvwmButtons PPP hobbes-trans.xpm Popup "PPP"


Ah, silly me. I just tried this and I see the behavior that you were
referring to... I wasn't truly thinking when I responded earlier.
The code in FvwmButtons only executes the action specified on a button
release, with no way for the user to change that currently.

A check might be able to be put in the code though, if the action is
"popup" to react on the press instead...let me try that... Nope that
doesn't work either. It's popping up the menu via a SendInfo to fvwm,
which doesn't process that until the ButtonRelease (for some reason
that I don't know yet, probably due to the way that the module pipes
are polled). I have to look over that code some more...

If I can figure out how to do it all correctly, the next patchlevel
will have FvwmButtons react to Popup on the ButtonPress. If it can't
be done, or is too difficult to be worth it, then I'll post that.

Later,
Chuck


--
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Nov 29 1995 - 15:43:25 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST