all repos — openbox @ ab68bcfb1e93daa41131174ac998548a183b5395

openbox fork - make it a bit more like ryudo

more changes wrt passing x, y, w, h to render
Derek Foreman manmower@gmail.com
commit

ab68bcfb1e93daa41131174ac998548a183b5395

parent

fdabd3daf9c631f53408d82c9168705dc6a2832a

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M render/render.hrender/render.h

@@ -158,7 +158,7 @@ void (*paint)(Window win, Appearance *l, int x, int y, int w, int h);

void render_startup(void); void init_appearance(Appearance *l); -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); void render_shutdown(void); Appearance *appearance_new(SurfaceType type, int numtex); Appearance *appearance_copy(Appearance *a);
M render/test.crender/test.c

@@ -61,7 +61,7 @@ fprintf(stderr, "couldn't connect to X server :0\n");

return 0; } - paint(win, look, 500, 500); + paint(win, look, 0, 0, 500, 500); while (1) { XNextEvent(ob_display, &report); switch (report.type) {

@@ -70,7 +70,7 @@ break;

case ConfigureNotify: w = report.xconfigure.width; h = report.xconfigure.height; - paint(win, look, w, h); + paint(win, look, 0, 0, w, h); printf("confignotify %i:%i\n", w, h); break; }