put mouse cursor on middle active window

Hi, how to make mouse cursor to follow active window when I use keyboard to change focus?

but also i want to avoid cursor jumping when i change focus using mouse

any idea how to do so?