I am looking for a program that can lock the mouse cursor within a specified window on Ubuntu 14.04 (using KDE). Ideally I should be able to enable/disable the locking using a keyboard shortcut.
On Windows 7, I use WMC. It's free, portable, only 56 KB and add an icon tray:
I am basically looking for an alternative for Ubuntu.