Some fixes and cleanups to GTK grab notification, so the affected gestures are always properly reset.