Hello, I don’t have much experience with writing fvwm functions. What I’d like to accomplish is to (de)iconify a window if it’s on the current desk, and move it to the current desk deiconified if it’s not on the current desk.
I’ve tried adding to a function different combinations of the following without perfect success: “Iconify toggle Current(CurrentDesk)”, “MoveToPage 0p 0 Current(!CurrentDesk)”, “Iconify False Current(!CurrentDesk)”.
DestroyFunc Foo
AddToFunc Foo
+ I Next (CurrerntDesk, $0) Iconify
+ I TestRc (NoMatch) Next ($0, !CurrentDesk) MoveToDesk $[desk.n]
+ I TestRc (Match) Next ($0, CurrentDesk, Iconified) Iconify
Then you can call it thus:
Foo someWindowClass
Haven’t tried it – conceptually it looks fine though.
Thank you. However, I’m not sure how to use this – I want to set it up so it gets executed when I press a mouse button over the FvwmIconMan; so no classes, I guess.