Add debugging print statements. - 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 d61770e19e2d0b236f69f28456a31abd2199d11d
(DIR) parent d6db1d7483b1f8d9df386579fbc70e269f58bd36
(HTM) Author: Rob King <jking@deadpixi.com>
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(-)
---
(DIR) 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) - 1, &len);
+ 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;
}