On some instances, mousemode doesn't entirely lock the keystrokes hence keys are registered as normal along with mouse movements. Unsure how to debug, this also persists on X restarts the only workaround so far is restarting my system. Any idea to proceed.

On some instances, mousemode doesn't entirely lock the keystrokes hence keys are registered as normal along with mouse movements. Unsure how to debug, this also persists on X restarts the only workaround so far is restarting my system. Any idea to proceed.