commit 5dd14703ed5852639868eaa42c13e8cc9aabf56c
Author: Justin Torres <[email protected]>
AuthorDate: Fri Oct 8 21:38:22 2021 +0200
Commit: Hiltjo Posthuma <[email protected]>
CommitDate: Sat Oct 9 10:29:10 2021 +0200
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 <[email protected]>
diff --git a/svkbd.c b/svkbd.c
index c762551..3ed9e6d 100644
--- a/svkbd.c
+++ b/svkbd.c
@@ -752,10 +752,10 @@ readxresources(void)
if (XrmGetResource(xdb, "svkbd.ABCbackground", "*", &type,
&xval) && !colors[SchemeNormABC][ColBg])
colors[SchemeNormABC][ColBg] = estrdup(xval.addr);
- if (XrmGetResource(xdb, "svkbd.ABCshiftforeground", "*", &type,
&xval) && !colors[SchemeNormShift][ColFg])
- colors[SchemeNormShift][ColFg] = estrdup(xval.addr);
- if (XrmGetResource(xdb, "svkbd.ABCshiftbackground", "*", &type,
&xval) && !colors[SchemeNormShift][ColBg])
- colors[SchemeNormShift][ColBg] = estrdup(xval.addr);
+ if (XrmGetResource(xdb, "svkbd.ABCshiftforeground", "*", &type,
&xval) && !colors[SchemeNormABCShift][ColFg])
+ colors[SchemeNormABCShift][ColFg] = estrdup(xval.addr);
+ if (XrmGetResource(xdb, "svkbd.ABCshiftbackground", "*", &type,
&xval) && !colors[SchemeNormABCShift][ColBg])
+ colors[SchemeNormABCShift][ColBg] = estrdup(xval.addr);
if (XrmGetResource(xdb, "svkbd.pressbackground", "*", &type,
&xval) && !colors[SchemePress][ColBg])
colors[SchemePress][ColBg] = estrdup(xval.addr);