all repos — openbox @ 1f63f7b331887a192ddf927670471c3f00f307f5

openbox fork - make it a bit more like ryudo

add a struct for pixmap masks
Dana Jansens danakj@orodu.net
commit

1f63f7b331887a192ddf927670471c3f00f307f5

parent

cce970813f088952e05e20f13d77d6f4766863e3

3 files changed, 14 insertions(+), 0 deletions(-)

jump to
A render/mask.c

@@ -0,0 +1,3 @@

+#include "mask.h" + +/* DO YOUR MAGIC MANNY WOOT \m/ */
A render/mask.h

@@ -0,0 +1,9 @@

+#ifndef __mask_h +#define __mask_h + +typedef struct { + Pixmap mask; + guint w, h; +} pixmap_mask; + +#endif
M render/render.hrender/render.h

@@ -6,6 +6,7 @@ #define _XFT_NO_COMPAT_ /* no Xft 1 API */

#include <X11/Xft/Xft.h> #include <glib.h> #include "color.h" +#include "mask.h" #ifdef HAVE_STDINT_H # include <stdint.h>

@@ -112,6 +113,7 @@ } TextureText;

typedef struct TextureMask { color_rgb *color; + pixmap_mask *mask; } TextureMask; typedef struct TextureRGBA {