Toggle pager.

Hello.

I have a ‘button’ which displays my currest desk, and thing is, i would like it to (when clicked) toggle a pager, appearing just over this button. So my question is simply, how may this be done?

Perhaps something like this. Within your button config you’d have something like this:

*FvwmButtons: (1x1, Swallow (...), Action (Mouse 1) Function ToggleWindow

Which defines an action to run the specified function when mouse button 1 is pressed. The function looks like this:

DestroyFunc ToggleWindow
AddToFunc   ToggleWindow
+ I None (FvwmPager, CirculateHit) Module FvwmPager * *
+ I TestRc (!Match) ThisWindow (FvwmPager) Close

– Thomas Adam

Thanks, it works nicely. Doing things in fvwm is a different kind of thinking than i’m used to, but it shouldn’t be too hard to get a grip of.