Prelude: I have focus follows mouse, and also raise focused window.
When I switch windows with the keyboard (Alt-Tab), the new window gets focus and is raised. However, when the mouse pointer is still in some other windows, then moments later that window gets focus and will be raised instead. This makes the shortcut useless.
I remember that it used to be a bit different: The window manages used not to care about the mouse pointer’s position if the mouse remained unused after switching windows with the keys. I think that was very sensible. Is there a way to come to a similar effect now?