Fix color scheme editing on smiley with Xresources

Fixes a small oversight that was preventing the colors of the smiley on q from changing with Xresources.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
Justin Torres 2021-10-08 21:38:22 +02:00 committed by Hiltjo Posthuma
parent 4061bacc1d
commit 5dd14703ed
1 changed files with 4 additions and 4 deletions

View File

@ -752,10 +752,10 @@ readxresources(void)
if (XrmGetResource(xdb, "svkbd.ABCbackground", "*", &type, &xval) && !colors[SchemeNormABC][ColBg]) if (XrmGetResource(xdb, "svkbd.ABCbackground", "*", &type, &xval) && !colors[SchemeNormABC][ColBg])
colors[SchemeNormABC][ColBg] = estrdup(xval.addr); colors[SchemeNormABC][ColBg] = estrdup(xval.addr);
if (XrmGetResource(xdb, "svkbd.ABCshiftforeground", "*", &type, &xval) && !colors[SchemeNormShift][ColFg]) if (XrmGetResource(xdb, "svkbd.ABCshiftforeground", "*", &type, &xval) && !colors[SchemeNormABCShift][ColFg])
colors[SchemeNormShift][ColFg] = estrdup(xval.addr); colors[SchemeNormABCShift][ColFg] = estrdup(xval.addr);
if (XrmGetResource(xdb, "svkbd.ABCshiftbackground", "*", &type, &xval) && !colors[SchemeNormShift][ColBg]) if (XrmGetResource(xdb, "svkbd.ABCshiftbackground", "*", &type, &xval) && !colors[SchemeNormABCShift][ColBg])
colors[SchemeNormShift][ColBg] = estrdup(xval.addr); colors[SchemeNormABCShift][ColBg] = estrdup(xval.addr);
if (XrmGetResource(xdb, "svkbd.pressbackground", "*", &type, &xval) && !colors[SchemePress][ColBg]) if (XrmGetResource(xdb, "svkbd.pressbackground", "*", &type, &xval) && !colors[SchemePress][ColBg])
colors[SchemePress][ColBg] = estrdup(xval.addr); colors[SchemePress][ColBg] = estrdup(xval.addr);