Fix mouse capture.

Fixes #15.