1 --- xev/xev.c 2004-02-06 11:00:37.000000000 -0800
2 +++ xev/xev.new.c 2005-08-04 15:40:36.000000000 -0700
4 nbytes = XLookupString (e, str, 256, &ks, NULL);
6 /* not supposed to call XmbLookupString on a key release event */
7 - if (e->type == KeyPress && xic) {
8 + /*if (e->type == KeyPress && xic) {
10 nmbbytes = XmbLookupString (xic, e, buf, bsize - 1, &ks, &status);
13 buf = realloc (buf, bsize);
15 } while (status == XBufferOverflow);
24 /* not supposed to call XmbLookupString on a key release event */
25 - if (e->type == KeyPress && xic) {
26 + /*if (e->type == KeyPress && xic) {
27 printf (" XmbLookupString gives %d bytes: ", nmbbytes);
32 printf (" XFilterEvent returns: %s\n",
33 XFilterEvent (eventp, e->window) ? "True" : "False");
40 fprintf (stderr, "%s: XSetLocaleModifiers failed\n", ProgramName);
43 - xim = XOpenIM (dpy, NULL, NULL, NULL);
44 + /*xim = XOpenIM (dpy, NULL, NULL, NULL);
46 fprintf (stderr, "%s: XOpenIM failed\n", ProgramName);
55 screen = DefaultScreen (dpy);
58 printf ("Outer window is 0x%lx, inner window is 0x%lx\n", w, subw);
61 - if (xim && xim_style) {
62 + /*if (xim && xim_style) {
64 XNInputStyle, xim_style,
68 fprintf (stderr, "XCreateIC failed\n");
73 for (done = 0; !done; ) {