Browse Source

Adding X resource for gaps

master
phillbush 4 years ago
parent
commit
eecf9b25ff
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      xmenu.c

+ 3
- 0
xmenu.c View File

@@ -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)


Loading…
Cancel
Save