dmenu/patch/center.c
2024-07-16 21:43:57 +02:00

9 lines
156 B
C

static int
max_textw(void)
{
int len = 0;
for (struct item *item = items; item && item->text; item++)
len = MAX(TEXTW(item->text), len);
return len;
}