blob: 6130959f865e417a8d54cb7e9f1e52684e343f2c [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Inappropriate [disable feature]
2
3---
4 xev.c | 16 ++++++++--------
5 1 file changed, 8 insertions(+), 8 deletions(-)
6
7Index: xev-1.2.0/xev.c
8===================================================================
9--- xev-1.2.0.orig/xev.c
10+++ xev-1.2.0/xev.c
11@@ -116,7 +116,7 @@ do_KeyPress (XEvent *eventp)
12 nbytes = XLookupString (e, str, 256, &ks, NULL);
13
14 /* not supposed to call XmbLookupString on a key release event */
15- if (e->type == KeyPress && xic) {
16+ /*if (e->type == KeyPress && xic) {
17 do {
18 nmbbytes = XmbLookupString (xic, e, buf, bsize - 1, &ks, &status);
19 buf[nmbbytes] = '\0';
20@@ -126,7 +126,7 @@ do_KeyPress (XEvent *eventp)
21 buf = realloc (buf, bsize);
22 }
23 } while (status == XBufferOverflow);
24- }
25+ }*/
26
27 if (ks == NoSymbol)
28 ksname = "NoSymbol";
29@@ -156,7 +156,7 @@ do_KeyPress (XEvent *eventp)
30 }
31
32 /* not supposed to call XmbLookupString on a key release event */
33- if (e->type == KeyPress && xic) {
34+ /*if (e->type == KeyPress && xic) {
35 printf (" XmbLookupString gives %d bytes: ", nmbbytes);
36 if (nmbbytes > 0) {
37 dump (buf, nmbbytes);
38@@ -164,7 +164,7 @@ do_KeyPress (XEvent *eventp)
39 } else {
40 printf ("\n");
41 }
42- }
43+ } */
44
45 printf (" XFilterEvent returns: %s\n",
46 XFilterEvent (eventp, e->window) ? "True" : "False");
47@@ -1015,7 +1015,7 @@ main (int argc, char **argv)
48 fprintf (stderr, "%s: XSetLocaleModifiers failed\n", ProgramName);
49 }
50
51- xim = XOpenIM (dpy, NULL, NULL, NULL);
52+ /*xim = XOpenIM (dpy, NULL, NULL, NULL);
53 if (xim == NULL) {
54 fprintf (stderr, "%s: XOpenIM failed\n", ProgramName);
55 }
56@@ -1042,7 +1042,7 @@ main (int argc, char **argv)
57 }
58 XFree (xim_styles);
59 }
60- }
61+ }*/
62
63 screen = DefaultScreen (dpy);
64
65@@ -1109,7 +1109,7 @@ main (int argc, char **argv)
66 printf ("Outer window is 0x%lx, inner window is 0x%lx\n", w, subw);
67 }
68
69- if (xim && xim_style) {
70+ /*if (xim && xim_style) {
71 xic = XCreateIC (xim,
72 XNInputStyle, xim_style,
73 XNClientWindow, w,
74@@ -1119,7 +1119,7 @@ main (int argc, char **argv)
75 if (xic == NULL) {
76 fprintf (stderr, "XCreateIC failed\n");
77 }
78- }
79+ }*/
80
81 have_rr = XRRQueryExtension (dpy, &rr_event_base, &rr_error_base);
82 if (have_rr) {