all repos — openbox @ cce970813f088952e05e20f13d77d6f4766863e3

openbox fork - make it a bit more like ryudo

hack so text shows up
Derek Foreman manmower@gmail.com
commit

cce970813f088952e05e20f13d77d6f4766863e3

parent

3232247b0c36cf1b5b5e11c8cb03c8e0c457abdd

1 files changed, 17 insertions(+), 12 deletions(-)

jump to
M render/render.crender/render.c

@@ -81,6 +81,23 @@

if (l->surface.data.planar.grad == Background_Solid) gradient_solid(l, w, h); else gradient_render(&l->surface, w, h); + +/*reduce depth here... + also, this is not the right place for this code, it's only here so + text rendering shows up for now. +*/ + if (l->surface.data.planar.grad != Background_Solid) { + im = XCreateImage(ob_display, render_visual, render_depth, + ZPixmap, 0, NULL, w, h, 32, 0); + g_assert(im != None); + im->byte_order = endian; + im->data = l->surface.data.planar.pixel_data; + XPutImage(ob_display, l->pixmap, DefaultGC(ob_display, ob_screen), + im, 0, 0, 0, 0, w, h); + im->data = NULL; + XDestroyImage(im); + } + for (i = 0; i < l->textures; i++) { switch (l->texture[i].type) { case Text:

@@ -91,18 +108,6 @@ }

font_draw(l->xftdraw, &l->texture[i].data.text); break; } - } -//reduce depth - if (l->surface.data.planar.grad != Background_Solid) { - im = XCreateImage(ob_display, render_visual, render_depth, - ZPixmap, 0, NULL, w, h, 32, 0); - g_assert(im != None); - im->byte_order = endian; - im->data = l->surface.data.planar.pixel_data; - XPutImage(ob_display, l->pixmap, DefaultGC(ob_display, ob_screen), - im, 0, 0, 0, 0, w, h); - im->data = NULL; - XDestroyImage(im); } XSetWindowBackgroundPixmap(ob_display, win, l->pixmap); XClearWindow(ob_display, win);