Fix mouse scrolling on Ubuntu

Cherry-pick from master to gtk3.

Fixes pull request #12 and Trac #237.

Conflicts:
	src/guake