Reset the mouse cursor when it leaves a toplevel window.

https://bugzilla.xamarin.com/show_bug.cgi?id=13579
https://bugzilla.gnome.org/show_bug.cgi?id=692548