From: Dana Jansens Date: Thu, 10 Jun 2010 15:20:29 +0000 (-0400) Subject: using a window's damage (incl. freeing it) can cause a BadDamage error if the window... X-Git-Tag: cgl~58 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=103c627fbebcac9620eb04a5de41a2dbae67bfda;p=dana%2Fopenbox.git using a window's damage (incl. freeing it) can cause a BadDamage error if the window disappeared. ignore the error. --- diff --git a/openbox/window.c b/openbox/window.c index b139af56..6c8ff1d4 100644 --- a/openbox/window.c +++ b/openbox/window.c @@ -94,8 +94,11 @@ void window_free(ObWindow *self) #ifdef USE_COMPOSITING if (self->type != OB_WINDOW_CLASS_PROMPT) { - if (self->damage) + if (self->damage) { + obt_display_ignore_errors(TRUE); XDamageDestroy(obt_display, self->damage); + obt_display_ignore_errors(FALSE); + } if (self->gpixmap) glXDestroyPixmap(obt_display, self->gpixmap); if (self->pixmap)