diff --git a/xmenu.c b/xmenu.c index 64dd46b..8dac8b9 100644 --- a/xmenu.c +++ b/xmenu.c @@ -9,6 +9,7 @@ #include #include #include +#include #define PROGNAME "xmenu" #define ITEMPREV 0 @@ -740,7 +741,7 @@ drawitem(struct Menu *menu, struct Item *item, XftColor *color) y = item->y + (item->h + dc.font->ascent) / 2; XSetForeground(dpy, dc.gc, color[ColorFG].pixel); XftDrawStringUtf8(menu->draw, &color[ColorFG], dc.font, - x, y, item->label, item->labellen); + x, y, (XftChar8 *)item->label, item->labellen); /* draw triangle, if item contains a submenu */ if (item->submenu != NULL) {