It works like the Pick command, but then it calls itself again so you can keep picking windows until you click on root or hit ESC. I think it works great for performing operations on several windows. Plus it works like Pick if run from a window context. It still has some bugs, e.g. it runs twice when used with FvwmIdent, and with Close it doesn’t actually close the windows until you’re done. Any improvements are welcome.
+ I Pick $*
# prevent infinite recursion (fvwm actually does this automatically, but only after 512 iterations)
+ I PipeRead "test $[func.context] == r && echo 'PickAgain $*'"
Sorry for this, here’s a “better” explanation (I hope)
I’ve implemented the function in my menu
+ "Multi Iconify" MultiIconify
When I launch it, a cursor appear, I click on a window. The window is iconified (no thumbnail is created ) and if I click on the icon (mostly the title) the window raise itself and goes back immediately to the iconified state. The only way is to xkill -id .