From f6437af4e652c52e5fea0d3fc603a3fa41692043 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 10 Jun 2010 14:00:20 -0400 Subject: [PATCH] create the gltexture for an obwindow when you hear about the top-level window creation. was occuring before gl was initialized. --- openbox/event.c | 1 + openbox/window.c | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/openbox/event.c b/openbox/event.c index 115e2880..990b8771 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -628,6 +628,7 @@ static void event_process(const XEvent *ec, gpointer data) if (xe->window == window_top(obwin)) { obwin->mapped = 0; RECT_SET(obwin->comp_area, xe->x, xe->y, xe->width, xe->height); + if (!obwin->texture) glGenTextures(1, &obwin->texture); } } else if ((e->type == ConfigureNotify || e->type == MapNotify) && obwin && obwin->type != OB_WINDOW_CLASS_PROMPT) { diff --git a/openbox/window.c b/openbox/window.c index b139af56..51d506f8 100644 --- a/openbox/window.c +++ b/openbox/window.c @@ -56,11 +56,6 @@ ObWindow* window_new_size(ObWindowClass type, gsize size) self = g_slice_alloc0(size); self->size = size; self->type = type; - -#ifdef USE_COMPOSITING - glGenTextures(1, &self->texture); -#endif - return self; } -- 2.34.1