Re: FVWM: howto conditionally add menu entries?
Thomas Adam <[email protected]>
| Newsgroups | gmane.comp.window-managers.fvwm |
|---|---|
| Message-ID | <CAOhcEPbxPg29JmRqK+ULx1Z7Sm=+K8xBc3HKPNQJdKwCgp=gyQ@mail.gmail.com> |
On Fri, 2 Aug 2019 at 20:34, hw <[email protected]> wrote: > DestroyMenu Main > AddToMenu Main > + Test (f fvwm-functions-starters-games.fvwm) AddToMenu Main "Games" PopUp Games That's not going to work, because when the '+' command is run for a menu-context, the menu code doesn't understand/execute things like the 'Test' command. In your case, you need to wrap the menu definitions in a function: DestroyFunc foo AddToFunc. foo + Test (....) AddToMenu ..... -- Thomas Adam