Started work on spacer item

This commit is contained in:
o9000
2015-05-05 23:32:18 +02:00
parent d2ee0a481f
commit e4e1ceec38
3 changed files with 14 additions and 0 deletions

View File

@@ -277,6 +277,7 @@ int resize_by_layout(void *obj, int maximum_size)
}
else {
// detect free size for SIZE_BY_LAYOUT's Area
// TODO the spacer should collapse when the other areas are overflowing
size = a->height - (2 * (a->paddingxlr + a->bg->border.width));
GSList *l;
for (l = a->list ; l ; l = l->next) {
@@ -471,6 +472,8 @@ void free_area (Area *a)
XFreePixmap (server.dsp, a->pix);
a->pix = 0;
}
if (a->gc)
free(a);
}

View File

@@ -72,6 +72,7 @@ typedef struct {
int resize;
// need redraw Pixmap
int redraw;
int gc;
// paddingxlr = horizontal padding left/right
// paddingx = horizontal padding between childs
int paddingxlr, paddingx, paddingy;