Style "FvwmButtons" MouseFocus
Style "FvwmIconBox" MouseFocus
Style "FvwmIconMan" MouseFocus
Style "FvwmTaskBar" MouseFocus
Style "FvwmWinList" MouseFocus
Style "FvwmPager" MouseFocus, Lenience
Style "panel" MouseFocus
Style "xsm" MouseFocus

# ----------------------------------------------------------------------------

DestroyFunc FuncFvwmModulesAutoRaise
AddToFunc   FuncFvwmModulesAutoRaise  
+ I Current (FvwmButtons) Raise
+ I Current (FvwmIconBox) Raise
+ I Current (FvwmIconMan) Raise
+ I Current (FvwmTaskBar) Raise
+ I Current (FvwmWinList) Raise
+ I Current (FvwmPager) Raise
+ I Current (panel) Raise
+ I Current (xsm) Raise

DestroyFunc FuncFvwmModulesAutoLower
AddToFunc   FuncFvwmModulesAutoLower 
+ I Nop

# ----------------------------------------------------------------------------

DestroyFunc FuncFvwmRestartFvwmAutoRaiseModules
AddToFunc   FuncFvwmRestartFvwmAutoRaiseModules
+ I KillModule FvwmAuto
+ I FvwmAuto 200 "Silent FuncFvwmModulesAutoRaise" "Silent FuncFvwmModulesAutoLower"

DestroyFunc FuncFvwmLoadFvwmAutoRaise
AddToFunc   FuncFvwmLoadFvwmAutoRaise
+ I FuncFvwmRestartFvwmAutoRaiseModules

DestroyFunc FuncFvwmAddToMenusFvwmAutoRaise
AddToFunc   FuncFvwmAddToMenusFvwmAutoRaise
+ I AddToMenu MenuFvwmStartRegularModules "Auto Raise Modules%menu/window-raise.xpm%" FuncFvwmRestartFvwmAutoRaiseModules

DestroyFunc FuncFvwmUnLoadFvwmAutoRaise
AddToFunc   FuncFvwmUnLoadFvwmAutoRaise
+ I DestroyFunc FuncFvwmModulesAutoRaise
+ I DestroyFunc FuncFvwmModulesAutoLower
+ I DestroyFunc FuncFvwmAddToMenusFvwmAutoRaise
+ I KillModule FvwmAuto

DestroyFunc FuncFvwmReLoadFvwmAutoRaise
AddToFunc   FuncFvwmReLoadFvwmAutoRaise
+ I Style "FvwmButtons" MouseFocus
+ I Style "FvwmIconBox" MouseFocus
+ I Style "FvwmIconMan" MouseFocus
+ I Style "FvwmTaskBar" MouseFocus
+ I Style "FvwmWinList" MouseFocus
+ I Style "FvwmPager" MouseFocus, Lenience
+ I Style "panel" MouseFocus
+ I Style "xsm" MouseFocus

DestroyFunc FuncFvwmUnReLoadFvwmAutoRaise
AddToFunc   FuncFvwmUnReLoadFvwmAutoRaise
