Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-terms/aterm/files: aterm-1.0.1-deadkeys.patch
Date: Thu, 02 Oct 2008 02:38:14
Message-Id: E1KlE4w-0005Pc-Q6@stork.gentoo.org
1 darkside 08/10/02 02:38:10
2
3 Added: aterm-1.0.1-deadkeys.patch
4 Log:
5 (non-maintainer commit) add deadkeys patch submitted by Yarda in bug #211576
6 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo x86_64)
7
8 Revision Changes Path
9 1.1 x11-terms/aterm/files/aterm-1.0.1-deadkeys.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-terms/aterm/files/aterm-1.0.1-deadkeys.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-terms/aterm/files/aterm-1.0.1-deadkeys.patch?rev=1.1&content-type=text/plain
13
14 Index: aterm-1.0.1-deadkeys.patch
15 ===================================================================
16 --- aterm-1.0.1~/src/command.c 2006-06-26 20:01:20.000000000 +0200
17 +++ aterm-1.0.1/src/command.c 2007-09-26 15:03:19.000000000 +0200
18 @@ -1486,19 +1486,21 @@
19 numlock_state = (ev->xkey.state & ModNumLockMask); /* numlock toggle */
20 PrivMode((!numlock_state), PrivMode_aplKP);
21 }
22 -#ifdef USE_XIM
23 +#if defined(USE_XIM) || !defined(NO_XLOCALE)
24 len = 0;
25 - if (Input_Context != NULL) {
26 - Status status_return;
27 + if (!XFilterEvent(ev, *(&ev->xkey.window))) {
28 + if (Input_Context != NULL) {
29 + Status status_return;
30
31 - kbuf[0] = '\0';
32 - len = XmbLookupString(Input_Context, &ev->xkey, kbuf,
33 - sizeof(kbuf), &keysym,
34 - &status_return);
35 - } else {
36 - len = XLookupString(&ev->xkey, kbuf,
37 - sizeof(kbuf), &keysym,
38 - &compose);
39 + kbuf[0] = '\0';
40 + len = XmbLookupString(Input_Context, &ev->xkey, kbuf,
41 + sizeof(kbuf), &keysym,
42 + &status_return);
43 + } else {
44 + len = XLookupString(&ev->xkey, kbuf,
45 + sizeof(kbuf), &keysym,
46 + &compose);
47 + }
48 }
49 #else /* USE_XIM */
50 len = XLookupString(&ev->xkey, (char *) kbuf, sizeof(kbuf), &keysym, &compose);