Hi,

Maybe I don't understand you clearly, but I do it this way (you can of
course make it less "structured"):

DestroyFunc MyMakeMyWindowListFunc
AddToFunc MyMakeMyWindowListFunc
 + I AddToMenu $[0] "Window list" title top
 # windows of current desktop
 + I All UseStack (CurrentDesk,!Focused,!Sticky,!Iconic) AddToMenu $[0] 
$$$$[w.name]\   $$$$[w.class]\  $[desk.n] WindowId $$$$[w.id] MyFocusFunc
 # the current window
 + I All (Focused) AddToMenu $[0] $$$$[w.name]\ $$$$[w.class]\  current\ 
$[desk.n] WindowId $$$$[w.id] MyFocusFunc
 + I AddToMenu $[0] "" Nop
 # windows on other desktops
 + I All UseStack (!CurrentDesk,!Sticky,!Iconic,!Focused) AddToMenu $[0] 
$$$$[w.name]\  $$$$[w.class]\  $$$$[w.desk] WindowId $$$$[w.id] MyFocusFunc
 + I AddToMenu $[0] "" Nop
 # iconified windows
 + I All UseStack (Iconic,!Sticky,!Focused) AddToMenu $[0] $$$$[w.name]\        
$$$$[w.class]\  iconic WindowId $$$$[w.id] MyFocusFunc
 # sticky windows
 + I All UseStack (Sticky,!Focused,!CirculateHit) AddToMenu $[0] $$$$[w.name]\  
$$$$[w.class]\  sticky WindowId $$$$[w.id] MyFocusFunc

AddToMenu MyWindowList "Window list" title
 + DynamicPopupAction MyMakeMyWindowListFunc MyWindowList
 + DynamicPopDownAction DestroyMenu recreate MyWindowList

And then you can use it in a menu definition

AddToMenu RootMenu
 + "Window List" Popup MyWindowList

-- 
Best regards,
Gábor


Reply via email to