diff options
-rw-r--r-- | meta/packages/xorg-app/xev/diet-x11.patch | 74 | ||||
-rw-r--r-- | meta/packages/xorg-app/xev_X11R7.0-1.0.1.bb | 8 |
2 files changed, 82 insertions, 0 deletions
diff --git a/meta/packages/xorg-app/xev/diet-x11.patch b/meta/packages/xorg-app/xev/diet-x11.patch new file mode 100644 index 0000000000..7e93f160a5 --- /dev/null +++ b/meta/packages/xorg-app/xev/diet-x11.patch | |||
@@ -0,0 +1,74 @@ | |||
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 | ||
3 | @@ -149,7 +149,7 @@ | ||
4 | nbytes = XLookupString (e, str, 256, &ks, NULL); | ||
5 | |||
6 | /* not supposed to call XmbLookupString on a key release event */ | ||
7 | - if (e->type == KeyPress && xic) { | ||
8 | + /*if (e->type == KeyPress && xic) { | ||
9 | do { | ||
10 | nmbbytes = XmbLookupString (xic, e, buf, bsize - 1, &ks, &status); | ||
11 | buf[nmbbytes] = '\0'; | ||
12 | @@ -159,7 +159,7 @@ | ||
13 | buf = realloc (buf, bsize); | ||
14 | } | ||
15 | } while (status == XBufferOverflow); | ||
16 | - } | ||
17 | + }*/ | ||
18 | |||
19 | if (ks == NoSymbol) | ||
20 | ksname = "NoSymbol"; | ||
21 | @@ -189,7 +189,7 @@ | ||
22 | } | ||
23 | |||
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); | ||
28 | if (nmbbytes > 0) { | ||
29 | dump (buf, nmbbytes); | ||
30 | @@ -200,7 +200,7 @@ | ||
31 | |||
32 | printf (" XFilterEvent returns: %s\n", | ||
33 | XFilterEvent (eventp, e->window) ? "True" : "False"); | ||
34 | - } | ||
35 | + }*/ | ||
36 | } | ||
37 | |||
38 | static void | ||
39 | @@ -857,7 +857,7 @@ | ||
40 | fprintf (stderr, "%s: XSetLocaleModifiers failed\n", ProgramName); | ||
41 | } | ||
42 | |||
43 | - xim = XOpenIM (dpy, NULL, NULL, NULL); | ||
44 | + /*xim = XOpenIM (dpy, NULL, NULL, NULL); | ||
45 | if (xim == NULL) { | ||
46 | fprintf (stderr, "%s: XOpenIM failed\n", ProgramName); | ||
47 | } | ||
48 | @@ -884,7 +884,7 @@ | ||
49 | } | ||
50 | XFree (xim_styles); | ||
51 | } | ||
52 | - } | ||
53 | + }*/ | ||
54 | |||
55 | screen = DefaultScreen (dpy); | ||
56 | |||
57 | @@ -948,7 +948,7 @@ | ||
58 | printf ("Outer window is 0x%lx, inner window is 0x%lx\n", w, subw); | ||
59 | } | ||
60 | |||
61 | - if (xim && xim_style) { | ||
62 | + /*if (xim && xim_style) { | ||
63 | xic = XCreateIC (xim, | ||
64 | XNInputStyle, xim_style, | ||
65 | XNClientWindow, w, | ||
66 | @@ -958,7 +958,7 @@ | ||
67 | if (xic == NULL) { | ||
68 | fprintf (stderr, "XCreateIC failed\n"); | ||
69 | } | ||
70 | - } | ||
71 | + }*/ | ||
72 | |||
73 | for (done = 0; !done; ) { | ||
74 | XEvent event; | ||
diff --git a/meta/packages/xorg-app/xev_X11R7.0-1.0.1.bb b/meta/packages/xorg-app/xev_X11R7.0-1.0.1.bb new file mode 100644 index 0000000000..1ecd45b4dd --- /dev/null +++ b/meta/packages/xorg-app/xev_X11R7.0-1.0.1.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require xorg-app-common.inc | ||
2 | |||
3 | DESCRIPTION = "X Event Viewer" | ||
4 | LICENSE = "MIT" | ||
5 | |||
6 | DEPENDS += " virtual/libx11" | ||
7 | |||
8 | SRC_URI += "file://diet-x11.patch;patch=1" | ||