There are various instances of this issue. Sometimes, the mouse fails to lock in specific games such as Minecraft, whereas on other occasions, this happens for all the games in the library.