window_get_pixmap(d_window_t *pubw)
{
d_window_priv_t *w = (d_window_priv_t*)pubw;
+
if (w->ck_get_pixmap.sequence) {
xcb_generic_error_t *err;
//printf("** checking get pixmap 0x%x\n", w->id);
//printf("returning pixmap 0x%x for window 0x%x\n", w->pixmap, w->id);
return w->pixmap;
}
+
+void
+window_configure(d_window_t *pubw, int x, int y, int width, int height,
+ int border_width)
+{
+ d_window_priv_t *w = (d_window_priv_t*)pubw;
+
+ /* this overrides any reply from our get_geometry call */
+ if (w->ck_get_geom.sequence)
+ w->ck_get_geom.sequence = 0;
+ w->x = x;
+ w->y = y;
+ w->w = width + border_width * 2;
+ w->h = height + border_width * 2;
+}