From eecf9b25ffee341eb4cbcdb8098298500c76bd52 Mon Sep 17 00:00:00 2001 From: phillbush Date: Mon, 29 Jun 2020 12:32:02 -0300 Subject: [PATCH] Adding X resource for gaps --- xmenu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xmenu.c b/xmenu.c index 8a7d511..92b1581 100644 --- a/xmenu.c +++ b/xmenu.c @@ -198,6 +198,9 @@ initresources(void) if (XrmGetResource(xdb, "xmenu.width", "*", &type, &xval) == True) if ((n = strtol(xval.addr, NULL, 10)) > 0) config.width_pixels = n; + if (XrmGetResource(xdb, "xmenu.gap", "*", &type, &xval) == True) + if ((n = strtol(xval.addr, NULL, 10)) > 0) + config.gap_pixels = n; if (XrmGetResource(xdb, "xmenu.background", "*", &type, &xval) == True) config.background_color = strdup(xval.addr); if (XrmGetResource(xdb, "xmenu.foreground", "*", &type, &xval) == True)