Introduction
Introduction Statistics Contact Development Disclaimer Help
Initialize the X Keyboard Extension correctly. - sam - An updated version of th…
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit 7dd7ed120e00456486c99a3a64a2290402f6c92b
parent d61770e19e2d0b236f69f28456a31abd2199d11d
Author: Rob King <[email protected]>
Date: Wed, 30 Nov 2016 16:03:37 -0600
Initialize the X Keyboard Extension correctly.
Diffstat:
libXg/gwin.c | 2 --
libXg/xtbinit.c | 5 +++++
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libXg/gwin.c b/libXg/gwin.c
@@ -255,7 +255,6 @@ Keyaction(Widget w, XEvent *e, String *p, Cardinal *np)
return;
XkbTranslateKeyCode(xkb, (KeyCode)e->xkey.keycode, e->xkey.state, &md, &k);
XkbTranslateKeySym(e->xany.display, &k, e->xkey.state, buf, sizeof(buf) - …
- fprintf(stderr, "translated keysym %s\n", buf);
/* Check to see if it's a specially-handled key first. */
for (Keymapping *m = keymappings; m; m = m->next){
@@ -351,7 +350,6 @@ Keyaction(Widget w, XEvent *e, String *p, Cardinal *np)
STUFFCOMPOSE();
}
c = keysymtoshort(k);
- fprintf(stderr, "keysym to short: %x\n", c);
composing = -2;
}
diff --git a/libXg/xtbinit.c b/libXg/xtbinit.c
@@ -208,6 +208,11 @@ xtbinit(Errfunc f, char *class, int *pargc, char **argv, c…
atexit(freebindings);
atexit(freechords);
+ int ignored;
+ if (XkbQueryExtension(_dpy, &ignored, &ignored, &ignored, &ignored, &ignor…
+ fprintf(stderr, "could not initialize X Keyboard Extension\n");
+ exit(EXIT_FAILURE);
+ }
xkb = XkbGetKeyboard(_dpy, XkbAllComponentsMask, XkbUseCoreKbd);
font = XftFontOpenName(_dpy, DefaultScreen(_dpy), fontspec[0] ? fontspec :…
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.