all repos — openbox @ fdabd3daf9c631f53408d82c9168705dc6a2832a

openbox fork - make it a bit more like ryudo

paint gets more parameters
Derek Foreman manmower@gmail.com
commit

fdabd3daf9c631f53408d82c9168705dc6a2832a

parent

e9a7fc91bc4485a7fc3f9542dbba86b8d3823c7d

3 files changed, 4 insertions(+), 6 deletions(-)

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

@@ -50,6 +50,8 @@ }

return NULL; } +//XXX same color could be pointed to twice, this might have to be a refcount + void color_free(color_rgb *c) { if (c->gc != None)
M render/render.crender/render.c

@@ -54,7 +54,7 @@ XFree(vinfo_return);

} } -void x_paint(Window win, Appearance *l, int w, int h) +void x_paint(Window win, Appearance *l, int x, int y, int w, int h) { int i; XImage *im;
M render/render.hrender/render.h

@@ -71,10 +71,6 @@ RGBA

} TextureType; typedef struct PlanarSurface { - int x; - int y; - int width; - int height; SurfaceColorType grad; ReliefType relief; BevelType bevel;

@@ -158,7 +154,7 @@ extern Visual *render_visual;

extern int render_depth; extern Colormap render_colormap; -void (*paint)(Window win, Appearance *l, int w, int h); +void (*paint)(Window win, Appearance *l, int x, int y, int w, int h); void render_startup(void); void init_appearance(Appearance *l);