Commit graph

625 commits

Author SHA1 Message Date
Alan Coopersmith
46c7b0e9d0 Add compose-check.pl to EXTRA_DIST
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-11-12 23:05:40 -08:00
Julien Cristau
54c64267cc man: fix XCopyGC argument order
Ubuntu bug#408337
2009-10-29 17:41:02 +01:00
Alan Coopersmith
aad1003265 libX11 1.3.2
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-23 13:55:14 -07:00
Peter Hutterer
6303ada89c Add smiley faces to compose sequences.
I wonder how we could have lasted that long without them.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Daniel Stone <daniel@fooishbar.org>
Acked-By: James Cloos <cloos@jhcloos.com>
2009-10-23 13:53:56 -07:00
Alan Coopersmith
0e104ebd86 Add man page for Compose file format
Based on grammar description in modules/im/ximcp/imLcPrs.c and
note on XFree86 changes formerly found in xorg-docs RELNOTES.sgml

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-22 23:12:30 -07:00
Jeremy Huddleston
9c95f2af7c Add extra configuration and sanity checks for groff and ps2pdf
1) Add AC_ARG_VAR for GROFF and PS2PDF to inform users of these
   environment variables.
2) Check that groff -ms works

Some distributions ship the ms macros as a separate package which may
not be installed together with groff, so we need to make sure that groff
works and the required macros are actually installed before attempting
to build the specs.

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2009-10-20 12:54:46 -07:00
Yaakov Selkowitz
d3f801fd2f Fix VPATH build of libX11 specs
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2009-10-19 10:56:44 -07:00
Alan Coopersmith
ad15e1a89d libX11 1.3.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-17 16:43:19 -07:00
Alan Coopersmith
0cbf98c17a Fix make distcheck
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-17 16:43:12 -07:00
Alan Coopersmith
082e62ad26 Use $(AM_V_GEN) to silence echo commands for generating shadow man pages
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-16 19:25:35 -07:00
Alan Coopersmith
4e66da0783 Move libX11 & XIM/locale specs from xorg-docs
If groff is found, and --disable-specs is not passed to configure,
specs will be converted to text, html and ps (or pdf if ps2pdf is
found) and installed to $(docdir)

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-14 16:18:24 -07:00
Yaakov Selkowitz
5d3d817a42 Provide _Xsetlocale compat wrappers on Cygwin
Previous versions of Cygwin did not have proper locale support, so Cygwin/X
defined X_LOCALE, using _Xsetlocale instead.  Cygwin 1.7 has added locale
support, but we can't remove the _Xsetlocale entry point without breaking
ABI.

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2009-10-14 13:57:59 -07:00
Yaakov Selkowitz
2c8b3a877a dolt: add Cygwin to supported platforms
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2009-10-14 13:57:45 -07:00
Alan Coopersmith
a2c8e3e34b Recognize XSUNBUFFERSIZE alias for XLIBBUFFERSIZE on Solaris
Also fix indenting of the XLIBBUFFERSIZE code to match surrounding code

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-14 13:23:30 -07:00
Jon TURNEY
34ddfca7b7 Include sys/select.h for select() and struct timeval, if it exists
This is a cygwin build fix
2009-10-14 01:25:16 +01:00
Xake
383165916d Use AM_V_GEN instead of customized macros for AM_SILENT_RULES
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-08 08:29:58 -07:00
Julien Cristau
854269d55c configure: quote argument to m4_pattern_forbid
Without this, configure spits out
../configure: line 12364: ac_fn_c_check_member: command not found
../configure: line 12378: ac_fn_c_check_type: command not found

Also anchor the pattern to make it stricter.

Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-10-06 16:12:45 +02:00
Jeremy Huddleston
3bb020587c Split CFLAGS into CPPFLAGS and CFLAGS
On some build systems, CPPFLAGS is set to "-I/some/prefix/include".  If older
X11 headers are in /some/prefix/include, they will be preferred over the
shipped headers.  This corrects that problem.
2009-10-01 22:20:38 -07:00
Peter Hutterer
d54caf1c9c libX11 1.3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-10-02 12:15:38 +10:00
Peter Hutterer
dd201bcf9e nls: remove duplicate Compose sequences from pt_BR.UTF-8
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-10-02 12:15:38 +10:00
Peter Hutterer
a293ae9e83 Add XF86TouchpadToggle to XKeysymDB
Lenovo laptops provide a key to enable or disable the touchpad and the
trackstick. This key is usually located on Fn + F8.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Adam Jackson <ajax@redhat.com>
2009-10-02 10:54:50 +10:00
Alan Coopersmith
69839f8903 Bug 24173: libX11 from git fails to build with automake older then 1.11
AM_CONDITIONAL must come *before* the AC_OUTPUT that creates the
Makefiles, instead of after.
<http://bugs.freedesktop.org/show_bug.cgi?id=24173>

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-27 10:36:06 -07:00
Alan Coopersmith
f5effd041f Resolve conflicting Compose sequences in iso8859-2, el_GR.UTF-8 & pt_BR.UTF-8
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-18 17:13:05 -07:00
Alan Coopersmith
3843778358 Add perl script to check for duplicate or conflicting compose file entries
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-18 17:13:05 -07:00
Alan Coopersmith
19cc5e1fa1 Use make rules instead of shell for loops to generate shadow man pages
Allows parallel make and simpler build logs/error reporting

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-18 17:13:04 -07:00
Alan Coopersmith
7dabcac973 Add AM_SILENT_RULES support for cpp rules for man & nls files
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-18 17:13:04 -07:00
Alan Coopersmith
bfa19cddd8 Update to using xorg-macros 1.3 & XORG_DEFAULT_OPTIONS
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-18 17:13:04 -07:00
Mikko Niskanen
51396066c8 Fix wrong typedef on HP-UX (#18998)
shl_dt doesn't exist, the type is shl_t.

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

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-04 10:12:06 +10:00
Paul Bender
615220a312 Don't require xdmcp in configure.ac (#22583)
X.Org Bug 22583 <http://bugs.freedesktop.org/show_bug.cgi?id=22583>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-04 10:05:21 +10:00
Peter Hutterer
20f9ecd86a man: fix parameters to XkbAllocGeomOverlay{Rows|Keys} (#23499)
X.Org Bug 23499 <http://bugs.freedesktop.org/show_bug.cgi?id=23499>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-03 14:02:44 +10:00
Peter Hutterer
c2814a614d man: XQueryTree may return BadWindow. (#23416)
X.Org Bug 23416 <http://bugs.freedesktop.org/show_bug.cgi?id=XXX>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-03 12:07:44 +10:00
Alan Coopersmith
dbe98d456c Fix version tag in .TH line of several XKB man pages
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-28 23:07:58 +08:00
Alan Coopersmith
bf24400936 XkbSetDeviceButtonActions.man: remove non-existent actions argument
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-28 23:04:38 +08:00
Alan Coopersmith
53affa9335 XkbQueryExtension.man: Arguments should be pointers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-28 23:00:17 +08:00
Alan Coopersmith
6233948885 XkbSAActionSetCtrls.man: Fix typo in formatting macro
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-28 22:53:03 +08:00
Alan Coopersmith
28a9ca57cd Convert Xkb API man pages to ANSI prototypes
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-08-28 22:49:31 +08:00
James Cloos
fa2eecca85 Add some (Serbian) Cyrillic NFD sequences.
A number of characters in use in the various countries which use the
Cyrillic script do not appear as pre-composed characters in The UCS
or Unicode; they are only available as combining-character sequences.

This commit adds support for using (prefix) dead keys and Multi_key-
initiated sequences to enter a number of these combining-character
sequences.  This ensures that users can enter these scripts even
when using the current Cyrillic keymaps, which lack support for
the combining characters.

Please see the discussions on the xkb mailing list.

Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-08-24 06:35:17 -04:00
Julien Cristau
d1bdc909f9 man/xkb: delete spurious newline in .TH headers 2009-08-05 18:14:23 +02:00
Julien Cristau
ee723b83b2 man: use __libmansuffix__ instead of 3X11 for references to other pages 2009-08-05 16:48:32 +02:00
Julien Cristau
595e204feb man/xkb: use __libmansuffix__ instead of hardcoding 3Xkb for manpage sections 2009-08-05 16:48:20 +02:00
Peter Hutterer
9da7e230d5 Bump to 1.2.99.901 (1.3 RC1)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-05 14:15:47 +10:00
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