dotfiles/.config/suckless/dmenu/patch/center.c
2024-04-23 07:46:41 +05: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;
}