From: Dana Jansens Date: Thu, 10 Jun 2010 20:00:49 +0000 (-0400) Subject: make sure the window's pixmap and glxpixmap worked out before drawing the window X-Git-Tag: cgl~49 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=ae565d29b87c973c590c37124799db999ffbd631;p=dana%2Fopenbox.git make sure the window's pixmap and glxpixmap worked out before drawing the window --- diff --git a/openbox/composite.c b/openbox/composite.c index 76c6c204..77df36c1 100644 --- a/openbox/composite.c +++ b/openbox/composite.c @@ -373,11 +373,15 @@ static gboolean composite(gpointer data) if (win->pixmap == None) win->pixmap = XCompositeNameWindowPixmap(obt_display, window_top(win)); + if (win->pixmap == None) + continue; if (win->gpixmap == None) win->gpixmap = obcomp.CreatePixmap(obt_display, obcomp.PixmapConfig[d].fbc, win->pixmap, attribs); + if (win->gpixmap == None) + continue; glBindTexture(GL_TEXTURE_2D, win->texture); gettimeofday(&start, NULL);