I copied this script to generate a custom window list menu,
this works fine if my cursor currently falls on a window
but if I currently do not have focus on any window (or you could say, the focus is on root), the window list is not generated, why is this??
thanks
Binds the NewAltTabFunction to the key Win+Tab
Key Tab A M Menu NewAltTabMenu Root 25 25
DestroyMenu NewAltTabMenu
- I AddToMenu “all windows”
AddToMenu NewAltTabMenu DynamicPopupAction NewAltTabFunction
This creates an alt-tab like menu, but it lists the non-iconified windows and then iconified windows -
the iconified windows have their thumbnails displayed, non-iconified display mini-icons
DestroyFunc NewAltTabFunction
AddToFunc NewAltTabFunction
- I DestroyMenu NewAltTabMenu
- I AddToMenu “all windows”
- I AddToMenu NewAltTabMenu DynamicPopupAction NewAltTabFunction
- I Current All ( !“Fvwm*”, !Iconic, AcceptsFocus ) EvalQuickWindowList NewAltTabMenu
- I Current All ( !“Fvwm*”, Iconic, AcceptsFocus ) EvalQuickWindowListIcons NewAltTabMenu
#+ I ChangeMenuStyle NewAltTabMenu Font “xft:Bitstream Vera Sans:style=regular:size=20”
Used to create a menu of non-iconified windows
DestroyFunc EvalQuickWindowList
AddToFunc EvalQuickWindowList
#+ I Current AddToMenu $0 %$[w.miniiconfile]%"$[w.class]: $[w.name]" WindowId $[w.id] Warp-Focus
- I Current AddToMenu $0 “$[w.name] $[page.nx]:$[page.ny]%$[w.miniiconfile]%” WindowId $[w.id] Focus