Commit graph

939 commits

Author SHA1 Message Date
Peter Hutterer
f6dad6aaa3 Use GetReqSized for GetReq and GetReqExtra
GetEmptyReq and GetResReq cannot do this due to the final typecast -
typically requests that need either of those do not have their own typedef
in the protocol headers.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-11-08 07:24:07 +10:00
Peter Hutterer
c9c99058b9 include: Add GetReqSized() for request buffers of specific size
Some XI2 requests change in size over different versions and libXi would
need to hack around GetReq and GetReqExtra. Add a new GetReqSized so the
library can explicitly specify the size of the request in 4-byte units.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-11-08 07:24:07 +10:00
Peter Hutterer
ba8a7a1916 Switch GetEmptyReq and GetResReq to call _XGetRequest
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-11-08 07:24:07 +10:00
Peter Hutterer
4a060f993b Add _XGetRequest as substitute for GetReq/GetReqExtra
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-11-08 07:24:07 +10:00
Alan Coopersmith
d8956520de Fix "nomal" -> "normal" typo in several comments
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-14 17:53:00 -07:00
Xue Wei
002b36e308 mbtocs should not truncate input
Fixes pasting more than 1024 bytes into xterm, as described in
https://bugs.freedesktop.org/show_bug.cgi?id=25209

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-14 17:42:45 -07:00
Marko Myllynen
9b8d8c9e5b Add new compose sequences
This patch adds few new compose sequences to the en_US map, ligatures
common in typesetting and sequences already in use in the fi_FI map.

https://bugs.freedesktop.org/show_bug.cgi?id=30621
https://bugs.freedesktop.org/show_bug.cgi?id=34523

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-14 17:20:44 -07:00
Choe Hwanjin
738f7b8673 XIM: Make Xim handle NEED_SYNC_REPLY flag
NEED_SYNC_REPLY flag should be in Xim not in Xic.
Because the focused Xic can be changed before sending sync reply.
After focused Xic changed, the new Xic doesn't have NEED_SYNC_REPLY
flag enabled, so libX11 doesn't send XIM_SYNC_REPLY packet.

This patch adds sync reply flag to Xim and removes sync reply
from Xic.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=7869

Signed-off-by: Choe Hwanjin <choe.hwanjin@gmail.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-14 17:19:15 -07:00
Bodo Graumann
50e1537933 libX11: Fixing modifier key range in Xutil.h (Bug #21910)
IsModifierKey, defined in include/X11/Xutil.h, is a macro determining,
which keys are regarded as modifiers. The constants ISO_Level5_Shift,
ISO_Level5_Latch and ISO_Level5_Lock where excluded previously, leaving
some Neo2 modifiers functionless in combination with compose.
This patch adjusts the range to include the correct, full range of
modifier constants.

Neo2 Bug 277 <http://wiki.neo-layout.org/ticket/277>

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

Signed-off-by: Bodo Graumann <mail@bodograumann.de>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
2011-10-11 19:06:38 +01:00
Yann Droneaud
b5a1086243 Return name instead of False in XSetICValues()
In case of error, XSetICValues() must return the first argument
that failed to be set.

But in some error paths, it returns False, which is converted to NULL,
so the function returns OK in case of error.

Signed-off-by: Yann Droneaud <yann@droneaud.fr>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-11 09:58:35 -07:00
Yann Droneaud
10992cb8dc Return name instead of value in XGetIMValues() and XSetIMValues()
As stated in man page (XOpenIM) and Xlib documentation (chapter 13.5.3),
XGetIMValues() and XSetImValues() "returns the name of the first argument
that could not be obtained."

But currently,

  err = XGetIMValues(im, "invalid", &arg, NULL);

returns &arg instead of "invalid".

This patch fixes https://bugs.freedesktop.org/show_bug.cgi?id=12897

Signed-off-by: Yann Droneaud <yann@droneaud.fr>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-11 09:56:54 -07:00
Jeremy Huddleston
f2651e03f3 Mark XKeycodeToKeysym as _X_DEPRECATED
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-10 14:09:17 -07:00
Jeremy Huddleston
25d7bb9c70 Fix nobreakspace for pt_BR.UTF-8
https://bugs.freedesktop.org/show_bug.cgi?id=31334

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-09 02:38:28 -07:00
Jeremy Huddleston
913603660c Fix potential uninitialized variable access in _XimMakeICAttrIDList
Found by clang static analysis

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-09 02:27:59 -07:00
Jeremy Huddleston
566ceaf5a9 Remove self-resolving aliases
https://bugs.freedesktop.org/show_bug.cgi?id=30112

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-09 02:27:44 -07:00
Matt Dew
22ba43d198 Cleanup IDs and links in doc
1 - fix the capitalization of the ID attributes to match either the
     <title> or <funcdef> string it goes with.
2 - fix any <linkend>'s that were affected by 1.
3 - any <function> in the docs that has an actual funcdef,
will become an olink.

Signed-off-by: Matt Dew <marcoz@osource.org>
2011-10-07 22:52:30 -06:00
James Cloos
f858f3326a [nls] Fix typo/synco.
The iso8859-1 Compose table includes an optional section which uses
Ctrl<T> as a substitute for <Multi_key>.  In that section the sequence
to generate an @ (at) either was incorrectly copied from the Multi_key
section or was not kept in sync with the Multi_key section.

Fixing this eliminates the warning from compose-check.pl:

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┃ Clash with existing sequence in iso8859-1/Compose.pre
┃  on line 661: Ctrl<T> <A> <A>
┃    line #661: Ctrl<T> <A> <A>		: "\305"	Aring
┃    line #480: Ctrl<T> <A> <A>		: "@"	at
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Signed-off-by: James Cloos <cloos@jhcloos.com>
2011-10-04 17:11:11 -04:00
Jeremy Huddleston
7f35f7efc2 Remove conflicting compose sequences for cent and colon
Regression from 4d78ad4bf6
Found by tinderbox

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-26 11:32:56 -07:00
Jeremy Huddleston
4d78ad4bf6 Add additional compose sequences for pound sterling, yen, and cent (mixed case)
https://bugs.freedesktop.org/show_bug.cgi?id=1013

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-26 00:37:38 -07:00
Jeremy Huddleston
0ca4153a37 Use a configure check for seteuid
HP-UX doesn't have seteuid

https://bugs.freedesktop.org/show_bug.cgi?id=1497

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-24 16:50:27 -07:00
Gaetan Nadon
79594b4d66 localedb specs: use <copyright> for first holder of multi license
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-20 16:08:21 -04:00
Gaetan Nadon
154430268c libX11 specs: use <copyright> for first holder of multi license
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-20 16:08:21 -04:00
Tollef Fog Heen
66e621f58d NLS: Add more vulgar fractions
Add 1/7, 1/9, 1/10 and 0/3 vulgar fractions.

Signed-off-by: Tollef Fog Heen <tfheen@err.no>
Signed-off-by: James Cloos <cloos@jhcloos.com>
2011-09-20 13:10:03 -04:00
Alexander Polakov
e37a6da814 XGrabKey manual page: change XAllowAccess to XAllowEvents in See Also
There is no XAllowAccess man page to see.

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-19 15:11:56 -07:00
Gaetan Nadon
a23f3323f2 XKB: provide adequate quotes for the license text
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19 15:27:44 -04:00
Gaetan Nadon
a9c7a5cad9 XIM: refactor the multi licensing legal text
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19 15:18:53 -04:00
Gaetan Nadon
c46f934ed8 xim trans: restore Fujitsu copyright legal text
Somehow lost during docbook conversion. text from x.org ftp R7.5.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19 10:33:30 -04:00
Gaetan Nadon
3d75f99338 xtrans: restore X Consortium original legal text
Asking X Consortium permission to use The Open Group name makes no sense.
Even more so in 1994 before X Window System was passed on to the Open Group.

Using original text from xorg-docs/general/License

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19 10:11:46 -04:00
Gaetan Nadon
136a381585 Framework: restore X Consortium copyright
Somewhat dammaged during docbook conversion.
Also restore pasrt of the original license text

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19 10:03:21 -04:00
Gaetan Nadon
33f3468784 localedb: restore X Consortium original legal text
Asking X Consortium permission to use The Open Group name makes no sense.
Even more so in 1994 before X Window System was passed on to the Open Group.

Using original text from xorg-docs/general/License

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19 09:50:00 -04:00
Gaetan Nadon
e99c9338e4 specs: support multi licensed copyright notice and license text
For documentation having multiple licenses, the copyright and legalnotice
elements sequence cannot instantiated multiple times.
The copyright notice and license text are therefore coded inside a
legalnotice element. The role attribute on the paragraph is used to allow
styling of the copyright notice text which should not be italicized.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19 08:27:33 -04:00
Gaetan Nadon
b9dedc757e localedb: add release info to spec
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19 08:26:20 -04:00
Gaetan Nadon
4519c89a87 specs: fix The Open Group license text
The warranty referred to the X Consortium

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19 08:05:32 -04:00
Gaetan Nadon
08ac378423 specs: The strandard name is still "X Consortium Standard"
This spec, and fsproto spec, are the only two docs with a different
standard name.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19 08:03:39 -04:00
Gaetan Nadon
8dfbeb1b1b specs: support multi licensed copyright notice and license text
For documentation having multiple licenses, the copyright and legalnotice
elements sequence cannot instantiated multiple times.
The copyright notice and license text are therefore coded inside a legalnotice
element. The role attribute on the paragraph is used to allow styling of the
copyright notice text which should not be italicized.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-18 13:22:34 -04:00
Gaetan Nadon
278ca8947c docs: merge copyright holder under the same copyright notice
As per the docbook markup dtd.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-17 09:44:46 -04:00
Gaetan Nadon
7ff012bb43 specs: handle multiple sets of copyright notice/license/warranty
Docbook groups all the <copyright> elements together and all the
<legalnotice> elements together.

We cannot have a sequence:
<copyright> <legalnotice> <copyright> <legalnotice> [...]

A workaround, which was done in some documents, is to put the copyright
notice inside the legalnotice in plain text without the <copyright> element.
A formal paragraph title is added here which makes the copyright notice bold,
and makes it much easier to locate.

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-17 09:44:01 -04:00
Gaetan Nadon
4a550c71b8 specs: remove orphan affiliation.
Authors affiliation are correct.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-14 15:55:42 -04:00
Gaetan Nadon
0cc02a6df6 specs: use appropriate markup for Copyright statements
Also move <releaseinfo> to match order of appearance

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-13 17:39:02 -04:00
Gaetan Nadon
afe13e19eb docs: use the &fullrelvers; entity to set X11 release information
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-12 20:38:12 -04:00
Gaetan Nadon
22a2153282 docs: remove <productnumber> which is not used by default
This element is not rendered by default on the title. A template
customization is required to display it.
X Window System does not have a product number.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-11 19:49:53 -04:00
Gaetan Nadon
719f16570d docs: use the &fullrelvers; entity to set X11 release information
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-11 17:46:59 -04:00
Gaetan Nadon
a6b2992f50 docs: remove orphan <affiliation>
Somehow created during the conversion from roff. Unable to locate
the author to which it belongs.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-11 17:38:42 -04:00
Gaetan Nadon
c7420060b6 docs: remove <productnumber> which is not used by default
This element is not rendered by default on the title. A template
customization is required to display it.
X Window System does not have a product number.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-11 17:38:05 -04:00
Gaetan Nadon
7d5b718c1e docbook.am: embed css styles inside the HTML HEAD element
Rather than referring to the external xorg.css stylesheet, embed the content
of the file in the html output produced. This is accomplished by using
version 1.10 of xorg-xhtml.xsl.

This makes the whole html docs tree much more relocatable.
In addition, it eliminates xorg.css as a runtime file which makes
xorg-sgml-doctools a build time only package.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-09 14:46:39 -04:00
Gaetan Nadon
24632d2804 compose: upgrade makefile to support olinking on chunked html
The essential differences over the regular docbook.am are:
Adding root.filename parameter for naming of chapters html files.
Using xhtml xmlto format and xorg-chunk.xsl stylesheet
Set olink.base.uri for pdf but not for chunked html
Olink is not applicable to ps and txt formats.

Html chapters are added to shelf_DATA as they are also installed.
The xml is generated from a perl script and not distributed.

Requires version 1.10 of xorg-sgml-doctools.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-09 14:44:53 -04:00
Gaetan Nadon
93ab0a1c9a docbook.am: refactor common flags for xmlto and xsltproc
Maximize reuse and reduce risk of setting the wrong flag
at the wrong place.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31 19:46:20 -04:00
Gaetan Nadon
85b725aa9e docbook.am: add search path for local entities
Currently, only $(XORG_SGML_PATH)/X11 is searched for xml entities.
A module may want to add entities that apply only to itself and
not to all modules, like the xserver does.

This feature may or may not be used in this module, but all modules
share a copy of docbook.am.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31 15:41:22 -04:00
Gaetan Nadon
b5ed2d368d docbook.am: explicitly list xmlto flags for each target
Normal evolution of make targets make it impractical to factor out
common command flags for xmlto.

The targets now list each command option as its presence or absence
needs to be justified.

xorg.ss is only needed by xmlto for html.
masterdb is only needed by xmlto.
img.src.path must not be used by html.
xsltproc need to use customization layer xorg-*.xsl.
txt format is not required to search masterdb.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-25 16:42:34 -04:00
Gaetan Nadon
d5b3605f3b docbook.am: do not generate docs if docbook customization layer is missing
The stylesheets used to be only about style, fonts or colors.
Complex features are now used like olink and chunked html which
may cause a build break when stylesheets are missing or lead to hard
to find problem.

Some modules may be built when stylesheets are present while others
are built without. There is no requirement to build crippled docs.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-25 13:12:49 -04:00