I find the Thumbnail function in this forum and it’s working pretty well if each window is iconified one by one. The problem comes when I use Win+D to iconify all the windows. The order in which icons appear is different from that in the .thumbnail log file. Then I cannot use the number to deiconify. Is there a way to enforce the the accordance of these two orders?
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I PipeRead "echo $[w.id]=$[w.iconfile] >> $[FVWM_USERDIR]/.thumbnail"
+ I Raise
+ I ThisWindow (!Shaded, Iconifiable, !Iconic) PipeRead "$[fvwm_scripts]/thumb $[w.id] $[fvwm_thumbnail_size] $[fvwm_tmp]/icon.tmp.$[w.id].png $[w.iconfile]"
+ I Iconify
DestroyFunc DethumbnailByNumber
AddToFunc DethumbnailByNumber
+ I PipeRead `echo WindowId $$(sed -ne '$$0s/=.*//p' $[FVWM_USERDIR]/.thumbnail) DeiconifyAndRearrange
AddToFunc DeiconifyAndRearrange
+ I Iconify off
+ I All (CurrentPage, Iconic) PlaceAgain Icon
Key 1 A 4 DethumbnailByNumber 1
Key 2 A 4 DethumbnailByNumber 2
Key 3 A 4 DethumbnailByNumber 3
Key 4 A 4 DethumbnailByNumber 4
Key 5 A 4 DethumbnailByNumber 5
Key 6 A 4 DethumbnailByNumber 6
Key 7 A 4 DethumbnailByNumber 7
Key D A 4 All (AcceptsFocus CurrentPage !Iconic !Shaded) Thumbnail