On Tue, 2006-04-04 at 11:32 +0200, Ulrich Mueller wrote: > Hallo, > > fvwm is great, but to make it greater, > I just thought it would be nice to have actions for menues, > for instance > > AddToMenu MenuTerms "Terminals" Title Exec exec xterm > + "XTerm" Exec exec xterm > + "Rxvt" Exec exec rxvt > + "mlTerm" Exec exec mlterm > > This "default action" could be executed > whenever instead of one entry the title is choosen, > or the superior menu entry which pops up this menu, > the last could be useful even for popup menus without the Title keyword. > > I haven't read the sources yet, > but I imagine this not to be too difficult, > and easily integrable into the existing structure, > maybe some of you has deeper insight, > or is there already some patch of this kind around? > > Thanks, umu
Have you considered setting a double-click action when you bind the menu? Assuming the above menu is bound to the root window, you could do: Mouse 1 R A Menu MenuTerms Exec exec xterm Now when you double-click, it fires off the xterm. If you single click or click and hold, the menu appears normally. --Dan Ost
