Commit graph

584 commits

Author SHA1 Message Date
Filippo Giunchedi
8f78c7b4e3 nls: add {left,right}wards arrow to compose table
Debian bug#532117 <http://bugs.debian.org/532117>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-03 10:47:22 +10:00
Julien Cristau
7949bfa003 Update library version for new symbols
Commit 554f755e55 added generic event
cookie handling.  Bump libX11 version number accordingly.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-03 08:37:21 +10:00
Julien Cristau
640fec5f4f Add _XFUNCPROTOBEGIN/END to Xlib-xcb.h
X.Org bug#22252 <https://bugs.freedesktop.org/show_bug.cgi?id=22252>

Reported-by: Riku Salminen <rsalmin2@cc.hut.fi>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-08-02 17:22:24 +02:00
Peter Hutterer
bc06d49e9d Fix compiler warning 'unused variable qelt'
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-29 08:44:11 +10:00
Peter Hutterer
03f4907e14 Add utlist.h to the Makefile.am
utlist.h contains the linked list macros, it was added with the recent
addition of event cookies but utlist.h wasn't added to the Makefile.am. As a
result, make dist failed.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-29 08:37:21 +10:00
Peter Hutterer
554f755e55 Add generic event cookie handling to libX11.
Generic events require more bytes than Xlib provides in the standard XEvent.
Memory allocated by the extension and stored as pointers inside the event is
prone to leak by simple 'while (1) { XNextEvent(...); }' loops.

This patch adds cookie handling for generic events. Extensions may register
a cookie handler in addition to the normal event vectors. If an extension
has registered a cookie handler, _all_ generic events for this extensions
must be handled through cookies. Otherwise, the default event handler is
used.

The cookie handler must return an XGenericEventCookie with a pointer to the
data.The rest of the event (type, serialNumber, etc.) are to be filled as
normal. When a client retrieves such a cookie event, the data is stored in
an internal queue (the 'cookiejar'). This data is freed on the next call to
XNextEvent().

New extension interfaces:
    XESetWireToEventCookie(display, extension_number, cookie_handler)

Where cookie_handler must set cookie->data. The data pointer is of arbitray
size and type but must be a single memory block. This memory block
represents the actual extension's event.

New client interfaces:
    XGetEventData(display, *cookie);
    XFreeEventData(display, *cookie);

If the client needs the actual event data, it must call XGetEventData() with
the cookie. This returns the data pointer (and removes it from the cookie
jar) and the client is then responsible for freeing the event with
XFreeEventData(). It is safe to call either function with a non-cookie
event. Events unclaimed or not handled by the XGetEventData() are cleaned up
automatically.

Example client code:
    XEvent event;
    XGenericEventCookie *cookie = &ev;

    XNextEvent(display, &event);
    if (XGetEventData(display, cookie)) {
        XIEvent *xievent = cookie->data;
        ...
    } else if (cookie->type == GenericEvent) {
        /* handle generic event */
    } else {
        /* handle extension/core event */
    }
    XFreeEventData(display, cookie);

Cookies are not multi-threading safe. Clients that use XGetEventData() must
lock between XNextEvent and XGetEventData to avoid other threads freeing
cookies.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-12 16:09:57 +10:00
Peter Hutterer
d7675cb8fa Bump to 1.2.99.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-10 16:11:12 +10:00
Peter Hutterer
75fe48e7a4 Bump to 1.2.2
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-10 14:08:00 +10:00
Peter Hutterer
5d0fe0e0e9 XMaskEvent/XCheckMaskedEvents must not check for GenericEvents.
GenericEvent cannot be selected for in the core event masks and they must
thus be treated like extension events.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-06 13:17:43 +10:00
Peter Hutterer
c1bf65b89f XWindowEvent/XCheckWindowEvent must not return GenericEvents.
GenericEvents have no fixed position for the window, so they must be treated
like extension events.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-06 13:17:43 +10:00
Alan Coopersmith
38f9054554 Drop ancient USG SysV #ifdefs
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-06-16 08:21:52 -07:00
Adam Jackson
7bfe1323f1 Remove X_NOT_STDC_ENV usage. (#6527) 2009-06-12 12:44:01 -04:00
Julien Cristau
6dd74d7fb4 nls: remove more duplicated aliases
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-05-29 11:18:42 +02:00
parag
e4b0899f51 nls: Add pa_PK locale information and make pa_IN as default for pa.
X.Org bug#21954 <http://bugs.freedesktop.org/show_bug.cgi?id=21954>

[jcristau: removed the pa_PK.UTF-8 alias to itself]

Signed-off-by: parag <pnemade@redhat.com>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-05-29 11:14:09 +02:00
Julien Cristau
f0ea1f6d51 nls: remove broken sd_IN.UTF-8 alias
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-05-29 11:13:43 +02:00
Julien Cristau
e29e010dab nls: remove duplicated en_US* aliases
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-05-29 11:13:36 +02:00
Caolan McNamara
a89a300d87 man: missing space in XAllocColor man page
X.Org bug#21854 <http://bugs.freedesktop.org/show_bug.cgi?id=21854>
2009-05-21 18:42:11 +02:00
James Cloos
c1c001e365 [nls] Replace remaining UCS Combining Characters in Compose sequences.
The replaces the instances of keysyms which match <U03[0-6][0-9A-Fa-f]>,
where the keysym is used as a dead_key, with an actual dead_key symbol.

The only remaining instances of UCS combining characters in the
compose sequences are of U0338 COMBINING LONG SOLIDUS OVERLAY
used as a suffix in Multi_key-initiated sequences to create
mathematics characters such as ∉ U+2209 NOT AN ELEMENT OF
from ∈ U+2208 ELEMENT OF.
2009-05-13 13:03:54 -04:00
James Cloos
e2b0bad3d3 [nls] Remove extraneous instances of UCS Combining Characters in Compose sequences.
This removes those instances of keysyms which match <U03[0-6][0-9A-Fa-f]>,
where the matching keysym is used as a dead_key, and for which alternative
compose sequences exist.
2009-05-13 09:58:59 -04:00
James Cloos
79f47e6dff [nls] Remove combining_ keysyms from the Compose files
Some of the UTF-8 Compose tables included combining_ keysyms in
the compose sequences as though they were dead symbols.  This
is contrary to how combining characters are used in the UCS.
Therefore, those lines have been removed from the Compose tables.

There were also some combining_ keysyms as targets.  As those
are not included in x11proto’s keysymdef.h, and as those do
exist there as Uxxxx keysyms, they are replaced with the Uxxxx
keysym names.

This addresses http://bugzilla.freedesktop.org/show_bug.cgi?id=5107
and is based on attachment 25644 by samuel.thibault@ens-lyon.org.

Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-05-08 20:11:54 -04:00
parag
4a08a3dfbd libX11: Add new Indic language information to nls directory files. #21560
Signed-off-by: parag <pnemade@redhat.com>
2009-05-06 23:37:09 -07:00
Alan Coopersmith
aaf81096eb Correct return type in XkbGetKeyboard man page
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-02 01:38:45 -07:00
Christoph Pfister
2bef065b70 X.Org Bug #21117: crash in get_rotate_fontname (omGeneric.c)
http://bugs.freedesktop.org/show_bug.cgi?id=21117

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-27 22:35:29 -07:00
Alan Coopersmith
5c1cde105d Use AC_USE_SYSTEM_EXTENSIONS instead of hand-rolled check for _GNU_SOURCE
Raises minimum autoconf version required to 2.60

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-27 22:06:10 -07:00
Julien Cristau
84b7a91ef8 Fix fi_FI.UTF-8, again
Commit 97fc6babd4 "NLS: Add UTF-8 compose
file for Finnish" made fi_FI.UTF-8 use a broken empty XLC_LOCALE file.
This reverts it back to using the en_US.UTF-8 one.
2009-04-15 15:18:20 +02:00
Theppitak Karoonboonyanan
128daff442 Thai XIM not retrieve MB surrounding on UTF-8 LC
On th_TH.UTF-8 locale, Thai XIM rejects all combining characters for GTK+ apps
that use X Input Method.

This is because GTK+ imxim immodule passes surrounding text in locale encoding,
which is UTF-8 for UTF-8 locales. But current Thai XIM in Xlib assumes the
multi-byte StringConversionText response for the StringConversionCallback to
always be TIS-620, by retrieving a single byte and using it as-is.

If the Thai XIM tries to convert the multi-byte text based on locale codeset
before using it, it will work again.

X.Org But 12759 <http://bugs.freedesktop.org/show_bug.cgi?id=12759>

Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-13 17:27:03 +01:00
Theppitak Karoonboonyanan
e09f0d227f Thai XIM not filters when NumLock or CapsLock is on
The Thai XIM component in libx11 activated on 'th*' locales normally filters
input sequence according to orthographic rules. However, when NumLock/CapsLock
is on, this stops working. All sequences are passed through.

This is caused by missing masks in _XimThaiFilter(), which normally screens out
certain special keys from entering orthographic rules. Unfortunately, this
included events with NumLock/CapsLock on. Negating the masks from the check
allows the events to be tested by the rules.

X.Org Bug 12517 <http://bugs.freedesktop.org/show_bug.cgi?id=12517>

Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-13 17:26:26 +01:00
Theppitak Karoonboonyanan
d108d3c706 CharSet-to-CompoundText Conversion Failed for Thai Locales
SCIM fails to commit Thai input characters on Thai locales, because it commits
string in compound text form, which was converted via
XwcTextListToTextProperty(). But the XLC_LOCALE for th_TH and th_TH.UTF-8
declares cs1's ct_encoding as TIS620-0:GR, which was commented out in
src/xlibi18n/lcCT.c default_ct_data, in favor of ISO8859-11 ESC sequence.
So, declaring cs1 as ISO8859-11:GR instead makes it work.

Besides, for th_TH.UTF-8, adding cs2 class with ISO10646-1 encoding also adds
support for UTF-8 input.

And, along discussion in the bug, a similar problem was found for fontset, too,
by causing delays on X apps startups on systems without tis620-0 fonts. This
is normally the case, as mkfontdir and mkfontscale generate iso8859-11 entries
by default for Thai X fonts. So, Thai fontset charset is also patched.

X.Org Bug 16475 <http://bugs.freedesktop.org/show_bug.cgi?id=16475>

Signed-off-by: Theppitak Karoonboonyanan <thep@linux.thai.net>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-04-13 17:25:14 +01:00
Alan Coopersmith
fd62d3318c Revert "Change masculine to ordmasculine in Compose file comments"
This reverts commit 892b401d5a.

As Julien Cristau correctly points out, I misread the Compose file grammar
in modules/im/ximcp/imLcPrs.c, and those are keysyms, not comments, and
the keysym is named XK_masculine in keysymdef.h.   This change is thus a
bug in the Solaris compose tables to be fixed, not an improvement to bring
upstream.
2009-04-08 19:42:25 -07:00
Alan Coopersmith
eac57c77af Version bump: 1.2.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-07 15:38:45 -07:00
Yaakov Selkowitz (Cygwin Ports maintainer)
bfbec08bae Bug 20773: Xcursor dynamic loading on Cygwin
X.Org Bug #20773 <http://bugs.freedesktop.org/show_bug.cgi?id=20773>
Patch #24096 <http://bugs.freedesktop.org/attachment.cgi?id=24096>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-07 13:49:18 -07:00
Alan Coopersmith
c8c4161491 Fix a several sparse warnings: Using plain integer as NULL pointer
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-06 16:52:46 -07:00
Alan Coopersmith
b336c3d0cc Further ansify prototypes & reduce #ifdefs in locking.c
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-06 16:32:05 -07:00
Alan Coopersmith
892b401d5a Change masculine to ordmasculine in Compose file comments
Matches the ordfeminine name used for the matching character,
and the ordmasculine name used in many font descriptions of the glyph.

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-06 10:50:09 -07:00
Julien Cristau
e3198b55dc Add a ru_RU.UTF-8 locale
Based on patch by Eugene Konev <ejka@imfi.kspu.ru> for X.Org 6.9.0.

Debian bug#330144 <http://bugs.debian.org/330144>
X.Org bug#15887 <http://bugs.freedesktop.org/show_bug.cgi?id=15887>
2009-04-06 17:30:52 +02:00
Alan Coopersmith
d239de9452 Delete some unused "#ifdef notdef" static functions
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-25 17:59:09 -07:00
Alan Coopersmith
4281892e31 Remove _XP_PRINT_SERVER_ #ifdefs from Xrm.c
This copy of Xrm.c is never compiled into the Xprint server any more, so
this old code-sharing #ifdef from the monolith tree isn't needed.

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-25 17:52:51 -07:00
Alan Coopersmith
27a2e16e8e makekeys: combine malloc(strlen)+strcpy into strdup
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-17 18:38:58 -07:00
Alan Coopersmith
78a894231a When makekeys fails to find a good hash, print error instead of divide-by-zero
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-17 15:42:19 -07:00
Alan Coopersmith
c9f84af591 Remove ifdef checks for macII left over from ancient A/UX 3.0 support
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-17 14:59:16 -07:00
Alan Coopersmith
4b90da0ffb XErrorDB additions for DRI2 requests
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 18:37:49 -07:00
Alan Coopersmith
273f45af14 XErrorDB additions for XInput errors and new XInput 1.5 requests
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 18:35:44 -07:00
Alan Coopersmith
90ef36f633 XErrorDB additions for RANDR 1.3
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 18:23:05 -07:00
Lubos Lunak
124a4efacc XErrorDB updates for XTEST, RANDR, DAMAGE extensions
From http://lists.freedesktop.org/archives/xorg/2008-January/031937.html

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 18:03:36 -07:00
Lubos Lunak
80811846e3 XGetErrorText() fails for extension error codes equal to the error base
From http://lists.freedesktop.org/archives/xorg/2008-January/031937.html

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 17:57:52 -07:00
Milos Komarcevic
da95ecbbdc Bug 11456: Serbian locale updates (sr_RS and sr_ME)
X.Org Bug #11456 <http://bugs.freedesktop.org/show_bug.cgi?id=11456>
Patch #23937 <http://bugs.freedesktop.org/attachment.cgi?id=23937>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 17:43:26 -07:00
Alan Coopersmith
934a6c0519 Bug 10082: Compose entries for some standard mathematical operators
X.Org Bug #10082 <http://bugs.freedesktop.org/show_bug.cgi?id=10082>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 14:56:39 -07:00
Alan Coopersmith
abf4da1ed0 Bug 14651: We need to add new locale specification for Belarusian Latin locale
X.Org Bug #14651 <http://bugs.freedesktop.org/show_bug.cgi?id=14651>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 14:31:15 -07:00
Caolan McNamara
837703c865 Bug 20575: man page for XCreatePixmapFromBitmapData doesn't match signature
X.Org Bug #20575 <http://bugs.freedesktop.org/show_bug.cgi?id=20575>
Patch #23717 <http://bugs.freedesktop.org/attachment.cgi?id=23717>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 14:15:50 -07:00
Alan Coopersmith
2219901887 Correct locale alias for sh_BA.ISO8859-2@bosnia (should be sr, not nr)
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-16 13:28:18 -07:00