Merge pull request #4 from jlaw/patch-1

fix: Normal BG color written to wrong scheme
This commit is contained in:
Luke Smith 2020-04-17 18:22:41 -04:00 committed by GitHub
commit ffcaf78c66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -750,7 +750,7 @@ read_Xresources(void) {
if (XrmGetResource(xdb, "dmenu.font", "*", &type, &xval) == True) /* font or font set */ if (XrmGetResource(xdb, "dmenu.font", "*", &type, &xval) == True) /* font or font set */
fonts[0] = strdup(xval.addr); fonts[0] = strdup(xval.addr);
if (XrmGetResource(xdb, "dmenu.color0", "*", &type, &xval) == True) /* normal background color */ if (XrmGetResource(xdb, "dmenu.color0", "*", &type, &xval) == True) /* normal background color */
colors[SchemeSel][ColBg] = strdup(xval.addr); colors[SchemeNorm][ColBg] = strdup(xval.addr);
if (XrmGetResource(xdb, "dmenu.color7", "*", &type, &xval) == True) /* normal foreground color */ if (XrmGetResource(xdb, "dmenu.color7", "*", &type, &xval) == True) /* normal foreground color */
colors[SchemeNorm][ColFg] = strdup(xval.addr); colors[SchemeNorm][ColFg] = strdup(xval.addr);
if (XrmGetResource(xdb, "dmenu.color6", "*", &type, &xval) == True) /* selected background color */ if (XrmGetResource(xdb, "dmenu.color6", "*", &type, &xval) == True) /* selected background color */