From 103c627fbebcac9620eb04a5de41a2dbae67bfda Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 10 Jun 2010 11:20:29 -0400 Subject: [PATCH] using a window's damage (incl. freeing it) can cause a BadDamage error if the window disappeared. ignore the error. --- openbox/window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.34.1