2a54baf60e
XDamageSubstract can create a BadDamage (when the window goes away before XDamageSubstract is called) and thus resulting into a crash. Fix it by protecting the call with an error trap. https://bugzilla.gnome.org/show_bug.cgi?id=623235