summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-01-14XNextEvent: Work around a bug in MachinariumHEADmachinarium-workaroundAaron Plattner1-0/+6
Machinarium has a bug where it sometimes handles every single MotionNotify event it gets by drawing the cursor itself, regarless of whether its rendering is keeping up. This can result in the mouse cursor lagging behind the real mouse position severely, making the game nearly unplayable. Work around this problem in libX11 by discarding all but the last MotionNotify whenever XNextEvent is called. This breaks the proper ordering of events, but works well enough for this particular game. Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2012-01-06Add more Xkb man pages to the See Also lists for core keyboard functionsAlan Coopersmith5-0/+9
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-12-30docbook.am: embed css styles inside the HTML HEAD elementGaetan Nadon1-2/+0
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 <nadon@memsize.(none)>
2011-12-23makekeys: move buf declaration from global to main to silence gcc -WshadowAlan Coopersmith1-1/+1
The global was only referenced in the main() function, which passes it as an argument of the same name to the parse_line() function, leading to gcc -Wshadow warnings: makekeys.c: In function ‘parse_line’: makekeys.c:58:24: warning: declaration of ‘buf’ shadows a global declaration makekeys.c:54:13: warning: shadowed declaration is here Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-12-14XQueryColors: Split a request into multiple requests if necessaryKusanagi Kouichi1-5/+27
https://bugs.freedesktop.org/show_bug.cgi?id=9160 Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp> Signed-off-by: James Cloos <cloos@jhcloos.com>
2011-12-11XIM: Allow modifier releases in compose sequences (#26705)Andreas Wettstein1-10/+42
Currently, only non-modifier keys (actually, keysyms) can be part of a compose sequence, and they are matched against the defined compose sequences at the time the key is pressed. The patch allows to use modifier keys an well, but matches them on key release, and only if no other key has been pressed after the modifier. Releasing a non-matched modifier during an ongoing compose sequence only aborts the sequence if any modifier release would have matched. In particular, if no compose sequences with modifiers are specified, the compose mechanism works exactly as without this patch. Even if modifiers are part of a compose sequence, they are not filtered. This is because modifiers affect the keyboard state no matter what we do here and, therefore, filtering them only could confuse clients. The purpose is this extension to the compose mechanism is to allow to make better use of keys in convenient reach for touch typing. Signed-off-by: Andreas Wettstein <wettstein509@solnet.ch> Signed-off-by: James Cloos <cloos@jhcloos.com>
2011-11-29Reject negative string counts in copy_string_listAlan Coopersmith1-1/+1
Silences parfait warning of a potential memory leak: Memory leak of pointer 'dst' allocated with malloc(length) at line 160 of FSWrap.c in function 'copy_string_list'. 'dst' allocated at line 145 with malloc(length). dst leaks when count <= 0 at line 154. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-11libX11 1.4.99.1libX11-1.4.99.1Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-11-11makekeys: Fix build/target word size mismatch when cross-compilingDerek Buitenhuis4-5/+10
Since makekeys is built using build environment's gcc and runs natively, we have to make sure that the size of the Signature type is the same on both the native environment and the target, otherwise we get mismatches upon running X, and some LSB test failures (xts5). Use an unsigned 32-bit integer on all platforms. Also, eliminate the redundant multiple typedefs for the Signature type. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
2011-11-09XlcSL.c: convert old-style function definitions to ANSI C89 styleAlan Coopersmith1-4/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-08Use GetReqSized for GetReq and GetReqExtraPeter Hutterer1-4/+4
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-08include: Add GetReqSized() for request buffers of specific sizePeter Hutterer1-0/+12
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-08Switch GetEmptyReq and GetResReq to call _XGetRequestPeter Hutterer1-34/+6
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-11-08Add _XGetRequest as substitute for GetReq/GetReqExtraPeter Hutterer2-33/+47
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-10-14Fix "nomal" -> "normal" typo in several commentsAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-14mbtocs should not truncate inputXue Wei1-3/+0
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-14Add new compose sequencesMarko Myllynen1-0/+13
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-14XIM: Make Xim handle NEED_SYNC_REPLY flagChoe Hwanjin5-47/+27
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-11libX11: Fixing modifier key range in Xutil.h (Bug #21910)Bodo Graumann1-1/+1
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-11Return name instead of False in XSetICValues()Yann Droneaud1-3/+3
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-11Return name instead of value in XGetIMValues() and XSetIMValues()Yann Droneaud1-6/+6
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-10Mark XKeycodeToKeysym as _X_DEPRECATEDJeremy Huddleston1-0/+1
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-09Fix nobreakspace for pt_BR.UTF-8Jeremy Huddleston1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=31334 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-09Fix potential uninitialized variable access in _XimMakeICAttrIDListJeremy Huddleston1-2/+5
Found by clang static analysis Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-09Remove self-resolving aliasesJeremy Huddleston1-19/+0
https://bugs.freedesktop.org/show_bug.cgi?id=30112 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-07Cleanup IDs and links in docMatt Dew48-3740/+3716
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-04[nls] Fix typo/synco.James Cloos1-1/+1
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-09-26Remove conflicting compose sequences for cent and colonJeremy Huddleston1-2/+0
Regression from 4d78ad4bf6dcabca9bb5f84c770abfbb02d3f7a4 Found by tinderbox Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-26Add additional compose sequences for pound sterling, yen, and cent (mixed case)Jeremy Huddleston1-0/+8
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-24Use a configure check for seteuidJeremy Huddleston2-2/+2
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-20localedb specs: use <copyright> for first holder of multi licenseGaetan Nadon1-2/+3
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-20libX11 specs: use <copyright> for first holder of multi licenseGaetan Nadon1-7/+8
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-20NLS: Add more vulgar fractionsTollef Fog Heen1-0/+4
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-19XGrabKey manual page: change XAllowAccess to XAllowEvents in See AlsoAlexander Polakov1-1/+1
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-19XKB: provide adequate quotes for the license textGaetan Nadon1-1/+1
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19XIM: refactor the multi licensing legal textGaetan Nadon1-15/+35
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19xim trans: restore Fujitsu copyright legal textGaetan Nadon1-6/+11
Somehow lost during docbook conversion. text from x.org ftp R7.5. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19xtrans: restore X Consortium original legal textGaetan Nadon1-3/+3
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-19Framework: restore X Consortium copyrightGaetan Nadon1-1/+2
Somewhat dammaged during docbook conversion. Also restore pasrt of the original license text Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19localedb: restore X Consortium original legal textGaetan Nadon1-3/+3
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-19specs: support multi licensed copyright notice and license textGaetan Nadon1-3/+2
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-19localedb: add release info to specGaetan Nadon1-1/+5
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19specs: fix The Open Group license textGaetan Nadon1-7/+6
The warranty referred to the X Consortium Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-19specs: The strandard name is still "X Consortium Standard"Gaetan Nadon1-1/+1
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-18specs: support multi licensed copyright notice and license textGaetan Nadon1-6/+2
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-17docs: merge copyright holder under the same copyright noticeGaetan Nadon3-9/+16
As per the docbook markup dtd. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-17specs: handle multiple sets of copyright notice/license/warrantyGaetan Nadon1-8/+6
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-14specs: remove orphan affiliation.Gaetan Nadon1-1/+0
Authors affiliation are correct. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-13specs: use appropriate markup for Copyright statementsGaetan Nadon1-5/+5
Also move <releaseinfo> to match order of appearance Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-12docs: use the &fullrelvers; entity to set X11 release informationGaetan Nadon4-8/+20
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>