Warp pointer inside window if outside when moving with keyboard. Also use helper functions.
Warp pointer inside window if outside when moving with keyboard. Also
use helper functions.

tkln/mcwm,tkln/mcwm,bbidulock/mcwm,bbidulock/mcwm