From ae565d29b87c973c590c37124799db999ffbd631 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 10 Jun 2010 16:00:49 -0400 Subject: [PATCH] make sure the window's pixmap and glxpixmap worked out before drawing the window --- openbox/composite.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.34.1