dotfiles/.config/suckless/dmenu/patch/center.c

9 lines
156 B
C
Raw Normal View History

2024-04-23 04:34:15 +02:00
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;
}