Request an updated keymap at startup. - sam - An updated version of the sam text editor.
 (HTM) git clone git://vernunftzentrum.de/sam.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 5666724ace16eff488a35cfef095252ee3fa73df
 (DIR) parent a4cd093243bf66ee7a57b3374616a4090718800e
 (HTM) Author: Rob King <jking@deadpixi.com>
       Date:   Wed,  7 Dec 2016 11:33:38 -0600
       
       Request an updated keymap at startup.
       
       Diffstat:
         libXg/xtbinit.c                     |       5 +++++
       
       1 file changed, 5 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/libXg/xtbinit.c b/libXg/xtbinit.c
       @@ -237,6 +237,11 @@ xtbinit(Errfunc f, char *class, int *pargc, char **argv, char **fallbacks)
                exit(EXIT_FAILURE);
            }
        
       +    if (XkbGetUpdatedMap(_dpy, XkbKeyTypesMask | XkbKeySymsMask | XkbModifierMapMask, xkb) != Success){
       +        fprintf(stderr, "could not get updated keymap\n");
       +        exit(EXIT_FAILURE);
       +    }
       +
            font = XftFontOpenName(_dpy, DefaultScreen(_dpy), fontspec[0] ? fontspec : getenv("FONT") ? getenv("FONT") : "monospace");
            screen.id = 0;
            XtRealizeWidget(_toplevel);