Linux – Lock the mouse cursor to one screen in Linux / Ubuntu

accessibilitycursorlinuxmultiple-monitorsUbuntu

This question has already been asked, but for Windows: Is it possible to lock the mouse to one screen?

I am using Ubuntu 10.04 with 2 screens with different resolution.
Getting the mouse cursor moving accidentally from one screen to another is really annoying.

Is it possible to temporarily lock the mouse to one screen, and possibly releasing it with a shortcut ?

Best Answer

This isn't too much of a fix as it is an annoyance minimizer, but in System->Preferences->Monitors, drag the 2nd monitor to the edge so that they only touch corners. Theoretically, that means it'll only transfer over if you pull the mouse into a corner. On the Gentoo Wiki, they posted a small program that might work also. I bade you luck.

Related Question