Just a simple hack to disable focus change on mouse move in DWM.
comment out the following line in dwm.c:
/* [EnterNotify] = enternotify, */
Thanks for the tipp to KiteAnton reddit user.
If you have not already known dwm, you can get a passionate intro from Luke Smith’s vlog episode or a more technical guide from Dave Gauer’s blog.