Add debugging print statements. - sam - An updated version of the sam text edit… | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit d61770e19e2d0b236f69f28456a31abd2199d11d | |
parent d6db1d7483b1f8d9df386579fbc70e269f58bd36 | |
Author: Rob King <[email protected]> | |
Date: Wed, 30 Nov 2016 15:21:15 -0600 | |
Add debugging print statements. | |
Diffstat: | |
libXg/gwin.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/libXg/gwin.c b/libXg/gwin.c | |
@@ -255,6 +255,7 @@ 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){ | |
@@ -350,6 +351,7 @@ Keyaction(Widget w, XEvent *e, String *p, Cardinal *np) | |
STUFFCOMPOSE(); | |
} | |
c = keysymtoshort(k); | |
+ fprintf(stderr, "keysym to short: %x\n", c); | |
composing = -2; | |
} | |