using a window's damage (incl. freeing it) can cause a BadDamage error if the window...
authorDana Jansens <danakj@orodu.net>
Thu, 10 Jun 2010 15:20:29 +0000 (11:20 -0400)
committerDana Jansens <danakj@orodu.net>
Sat, 26 Jun 2010 23:30:47 +0000 (01:30 +0200)
openbox/window.c

index b139af5..6c8ff1d 100644 (file)
@@ -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)