a4e29e1244
The current code assumes that the GetEvents call will always receive, causing an exception in the error case. https://bugzilla.gnome.org/show_bug.cgi?id=686805