all repos — openbox @ 135f1c61e28cca91fcd02ccb26d6329a52c36ec1

openbox fork - make it a bit more like ryudo

add rgba icon support
Derek Foreman manmower@gmail.com
commit

135f1c61e28cca91fcd02ccb26d6329a52c36ec1

parent

c0568cd7ef9542540b11068c002bb6a8d35f3d84

1 files changed, 7 insertions(+), 1 deletions(-)

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

@@ -6,6 +6,7 @@ #include "gradient.h"

#include "font.h" #include "mask.h" #include "color.h" +#include "image.h" #include "../kernel/openbox.h" int render_depth;

@@ -145,6 +146,11 @@ color_allocate_gc(l->texture[i].data.mask.color);

mask_draw(l->pixmap, &l->texture[i].data.mask, &l->texture[i].position); break; + case RGBA: + image_draw(l->surface.data.planar.pixel_data, + &l->texture[i].data.rgba, + &l->texture[i].position); + break; } } XSetWindowBackgroundPixmap(ob_display, win, l->pixmap);

@@ -172,7 +178,7 @@ out = g_new(Appearance, 1);

out->surface.type = type; out->textures = numtex; out->xftdraw = NULL; - if (numtex) out->texture = g_new(Texture, numtex); + if (numtex) out->texture = g_new0(Texture, numtex); else out->texture = NULL; out->pixmap = None;