Beacon is an Emacs package, which makes a visual change when the cursor is moved from one window to another, hence making it unlikely for you to loose your cursor. Trust me it is surprisingly useful.
(use-package beacon
:config
(beacon-mode 1)
)