- bullet_w = item_h + theme_bevel;
- w += 2 * bullet_w;
- items_h = item_h * nitems;
-
- /* size appearances */
- RECT_SET(data->a_title->area, 0, 0, w, data->title_h);
- RECT_SET(data->a_title->texture[0].position, 0, 0, w, data->title_h);
- RECT_SET(data->a_items->area, 0, 0, w, items_h);
+ self->bullet_w = self->item_h + theme_bevel;
+ self->width += 2 * self->bullet_w;
+ self->item_h += theme_bevel * 2;
+ items_h = self->item_h * nitems;
+
+ RECT_SET(self->a_title->area, 0, 0, self->width, self->title_h);
+ RECT_SET(self->a_title->texture[0].position, 0, 0, self->width,
+ self->title_h);
+ RECT_SET(self->a_items->area, 0, 0, self->width, items_h);
+
+ XMoveResizeWindow(ob_display, self->frame, x, y, self->width,
+ self->title_h + items_h);
+ XMoveResizeWindow(ob_display, self->title, -theme_bwidth, -theme_bwidth,
+ self->width, self->title_h);
+ XMoveResizeWindow(ob_display, self->items, 0, self->title_h + theme_bwidth,
+ self->width, items_h);
+
+ paint(self->title, self->a_title);
+ paint(self->items, self->a_items);
+
+ item_y = 0;