ignore xerrors when destroying things. windows can go away.
authorDana Jansens <danakj@orodu.net>
Sat, 9 Feb 2008 03:06:40 +0000 (22:06 -0500)
committerDana Jansens <danakj@orodu.net>
Sat, 9 Feb 2008 03:06:40 +0000 (22:06 -0500)
loco/loco.c

index ad84465..c88f5d6 100644 (file)
@@ -234,9 +234,11 @@ void releasePixmapFromTexture(LocoWindow *lw)
 void destroy_glxpixmap(LocoWindow *lw)
 {
     if (lw->glpixmap) {
+               obt_display_ignore_errors(TRUE);
         releasePixmapFromTexture(lw);
-
         glXDestroyGLXPixmap(obt_display, lw->glpixmap);
+        obt_display_ignore_errors(FALSE);
+
         lw->glpixmap = None;
     }
 }