On Fri, Oct 08, 2021 at 09:38:22PM +0200, Maarten van Gompel wrote:
> From: Justin Torres <jttorres1031_AT_gmail.com>
>
> 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_AT_anaproy.nl>
> ---
> svkbd.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/svkbd.c b/svkbd.c
> index c762551..3ed9e6d 100644
> --- a/svkbd.c
> +++ b/svkbd.c
> _AT_@ -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);
> --
> 2.33.0
>
>
Hi Maarten,
Pushed, thank you.
--
Kind regards,
Hiltjo
Received on Sat Oct 09 2021 - 10:30:28 CEST