This is exactly what you're looking for

Its cross platform, easy to setup, and really neat!
Basically you define a server (say, your windows box on the left), and a client (your linux box on the right)
Configure their ip addresses/hostnames, and when you move your mouse beyond the right edge of one monitor, you'll see the mouse appear on your other machine (the keyboard automatically gets the focus for the second machine now). It looks cooler than how I'm describing it, give it a try.