From 585e3de1a3702b7d8b391d6a258928f936a73f71 Mon Sep 17 00:00:00 2001 From: phillbush Date: Mon, 29 Jun 2020 10:01:54 -0300 Subject: [PATCH] Squashed commit of the following: commit b0f37c9fdb2deb09fa7af59067d57420bfaa87ea Author: phillbush Date: Mon Jun 29 09:58:36 2020 -0300 Compile time error fixes commit e6bf27768ff2ceeafb4713e90df6a35fa2294d1b Author: Karl Martin Date: Sun Jun 28 23:08:02 2020 -0400 v1.01 add: user can set gap width prefs commit 0cca2163092b9aed2823ca65b02959440ef24f41 Author: Karl Martin Date: Sun Jun 28 23:04:10 2020 -0400 INIT: func addition + error fix hack + prefs: extra x,y padding for initial menu add: x padding for child menus fix: 2x compile time errors --- xmenu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.20.1