How to Create such a Focus Strategy?

I am looking for a possible configuration for the following focus strategy:
Moving the mouse over other windows without any modifier will not de-focus the current window.
Moving the mouse over other windows with Ctrl pressed will put the focus to the one mouse enters.
Moving the mouse over other windows with Alt pressed will put the focus to the one mouse enters and Raise it at the same time.

The given modes for focus are kind of impossible to implement this strategy. Is there any other way?

Thanks a lot!

So globally you want to have:

Style * ClickToFocus

Well, you suffer problems here – broadcast events from keys don’t get picked up like this during xcrossing events, So you can’t do what you want, only you can do it after you’ve moved the mouse.

Same reason above for this one.

See FvwmAuto though – it’s interesting.

– Thomas Adam

thank you~
FvwmAuto is interesting :-p