You may have noticed that the Mouse cursor does not lock to the game window in Windows 11/10 at times. There are various instances of this issue. Sometimes, the mouse fails to lock in specific games ...
I customized this basic part of Windows 11 and it instantly modernized the vibe of my desktop (without slowing down my PC in the process).