}
}
-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;
// printf("painting window %ld\n", win);
oldp = l->pixmap; /* save to free after changing the visible pixmap */
- l->pixmap = XCreatePixmap(ob_display, ob_root, w, h, render_depth);
+ l->pixmap = XCreatePixmap(ob_display, ob_root, x+w, y+h, render_depth);
g_assert(l->pixmap != None);
if (l->xftdraw != NULL)
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, 0, 0, x, y, w, h);
im->data = NULL;
XDestroyImage(im);
}