Commit graph

130 commits

Author SHA1 Message Date
Peter Hutterer
3ec82cd722 Add XF86XK_TouchpadToggle
Many laptops provide a key to enable or disable the touchpad and the
trackstick. On Lenovo T61s, this key is located on Fn + F8.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-10-02 10:46:07 +10:00
Alan Coopersmith
4253e20808 xproto 7.0.16
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-23 17:04:09 -07:00
Alan Coopersmith
05914c8269 Don't need an #ifdef when both cases just include the same file
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-23 17:00:18 -07:00
Jon TURNEY
ef37625372 Restore macro definition of sleep(), needed by Xming
Removed in error by commit 1defe6b37c

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2009-06-17 15:46:05 +01:00
Alan Coopersmith
e9df99b12e Drop #ifdef USG checks for some truly ancient (pre-SVR4) SysV's
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-06-15 08:09:43 -07:00
Alan Coopersmith
385c1343f7 Get rid of unneeded && clause in list of LP64 ifdefs in Xmd.h
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-06-15 08:09:43 -07:00
Alan Coopersmith
5aaec3c7a5 Drop support for SunOS 4 and Solaris releases older than 2.5 (1995)
Includes changing remaining sun ifdef's to check for standard-conformant /
non-namespace-polluting #ifdef __sun instead of older #ifdef sun.

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-06-15 08:09:36 -07:00
Alan Coopersmith
5bad478221 Use indentation to provide a map through the twisty maze of ifdefs, all alike
git diff -w shows no changes other than whitespace in this patch

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-06-14 09:35:23 -07:00
Alan Coopersmith
1f59b5f8ea Removing dangling #else block from X_NOT_STDC_ENV removal
Fixes mass damage caused by ced38e880b
moving the includes for unistd.h, fcntl.h, etc. from the else for
X_NOT_STDC_ENV into the #else for #ifndef _XOS_H_, which made them
go away for everyone.

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-06-14 08:40:53 -07:00
Adam Jackson
4435ea3d80 Use ## catenation not /**/ 2009-06-12 12:41:57 -04:00
Adam Jackson
74d18e89a3 __STDC__ is always defined in C89. 2009-06-12 12:39:06 -04:00
Adam Jackson
bab9c572cd Remove a bunch of garbage for unsupported platforms. 2009-06-12 12:33:22 -04:00
Adam Jackson
ced38e880b Remove all trace of X_NOT_STDC_ENV (#6527)
Seriously C89 already you guys.
2009-06-12 12:21:12 -04:00
Adam Jackson
3fc87608d4 Death to RCS tags. 2009-06-12 11:43:45 -04:00
Jeremy Huddleston
a2a0f01d36 Apple: Only define _DARWIN_C_SOURCE if it isn't already defined 2009-06-09 00:47:25 -07:00
Jon TURNEY
1defe6b37c Cygwin/X: Don't destroy min/max macros in Xwindows.h
Now that macros named min/max rather than MIN/MAX are used consistently in the
X server, we need to ensure they work for Xwin builds.  Change Xwindows.h from
simply destroying any definition of min/max, to avoiding defining them but
allowing any pre-existing definition to stand.

Also, try to improve the comment describing why this madness is needed in the
first place, and remove a no-longer needed macro definition of sleep()
2009-06-05 18:18:47 +01:00
Alan Coopersmith
32d14e3499 Remove #ifdef macII code left over from ancient A/UX 3.0 support
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-05 15:12:26 -08:00
James Cloos
0343191896 Bump to 7.0.15. 2009-03-02 12:54:41 -05:00
Paulo Cesar Pereira de Andrade
391f302a7d Janitor: Correct make distcheck and dont distribute autogen.sh 2009-01-27 20:06:28 -02:00
Peter Hutterer
1e33337d4d Add XF86XK_Suspend and XF86XK_Hibernate keysym defs.
At the moment, we have the following keysyms defined to put a computer into a
sleep state:

XF86XK_Standby    0x1008FF10   /* System into standby mode   */
XF86XK_PowerDown  0x1008FF21   /* Deep sleep the system      */
XF86XK_Sleep      0x1008FF2F   /* Put system to sleep        */

Proposed change by Richard Hughes:
    "The nomenclature I've been trying to make stick
    (most projects now use this) for a few years now is:

    standby: high sleep state, nobody uses this any more
    hibernate: sleep to disk - slow, but can remove power
    suspend: sleep to ram - fast, but can't remove power
    hybrid sleep: sleep to both, slow, and can remove power, but quick to
    resume if you don't - most users don't use this"

This patch adds XF86XK_Suspend and XF86XK_Hibernate. The behaviour of
XF86XK_Sleep can then be configured on a per-session basis.

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-11-14 10:33:30 +10:00
James Cloos
2563153ed6 [keysymdef.h] Add dead_currency symbol.
As requested for the Bépo keyboard layout (http://clavier-dvorak.org/wiki/).

Cf. bugs:

  http://bugs.freedesktop.org/show_bug.cgi?id=17821
  http://bugs.freedesktop.org/show_bug.cgi?id=17822
2008-11-11 16:26:28 -05:00
James Cloos
735d745e17 Add a dead_belowcomma keysym
Requested by the Bépo group.

The belowcomma is only used for:

 U+0218 [Ș] LATIN CAPITAL LETTER S WITH COMMA BELOW
 U+0219 [ș] LATIN SMALL LETTER S WITH COMMA BELOW
 U+021A [Ț] LATIN CAPITAL LETTER T WITH COMMA BELOW
 U+021B [ț] LATIN SMALL LETTER T WITH COMMA BELOW

(aka 0xAA, 0xBA, 0xDE and 0xFE from iso-8859-16).

Cf: http://bugs.freedesktop.org/show_bug.cgi?id=17822
    http://bugs.freedesktop.org/show_bug.cgi?id=17821
    http://clavier-dvorak.org/wiki/
2008-10-25 00:35:22 -04:00
Sayamindu Dasgupta
935dd37be4 Add dead vowels in keysymdef.h
At OLPC, we are using an XKB based Amharic keyboard layout, which requires the
use of dead vowels to generate the various consonant + vowel combinations (see
http://en.wikipedia.org/wiki/Ge%27ez_alphabet#Syllable_signs for a detailed
explanation).

[Patch modified to use available keysym codes.  -JimC]

Cf: http://bugs.freedesktop.org/show_bug.cgi?id=17437

Signed-off-by: James Cloos <cloos@jhcloos.com>
2008-10-25 00:35:21 -04:00
James Cloos
c43f804f44 Add dead keysyms for DOUBLE GRAVE and INVERTED BREVE accents
Several COMBINING characters are used in libX11's Compose tables
where dead keys should be used; these are the two most-used which
so far have not had equivalent dead keys.
2008-10-25 00:35:21 -04:00
Peter Hutterer
33a7de5cda Bump to 7.0.14. 2008-10-23 22:41:01 +10:30
Bastien Nocera
1cf41088ff Keysyms needed for some HID remote controls to work under X. #16519
In particular, this enables Sony Ericsson phones and PS3 BD remotes.

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

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-10-15 14:27:43 +10:30
Peter Hutterer
0b541b3fa2 Fix typos in comments (UP/DOWN TACK and LEFT/RIGHT TACK wrong way round).
Spotted by Erik Streb and Julien Cristau.

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-10-14 21:00:10 +02:00
Peter Hutterer
c94477f163 Revert "Fix typos in comments (UP/DOWN TACK and LEFT/RIGHT TACK wrong way round)."
Codepoints should have moved with the comments. See next commit for correct
patch.

This reverts commit 2945d2f97c.
2008-10-14 21:00:10 +02:00
Peter Hutterer
2945d2f97c Fix typos in comments (UP/DOWN TACK and LEFT/RIGHT TACK wrong way round).
Spotted by Erik Streb.

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-10-14 21:42:10 +10:30
Peter Hutterer
610eb96983 Add keysyms for XF86XK_Battery, XF86XK_Bluetooth, XF86XK_WLAN, XF86XK_UWB. 2008-10-13 13:27:01 +10:30
James Cloos
0846d7adfe Add dead_perispomeni to keysymdef.h
Make the dead_perispomeni keysym an alias to dead_tilde
(which is currently used for entering characters with
perispomeni).

Cf: https://bugs.freedesktop.org/show_bug.cgi?id=14013
2008-07-13 17:57:09 -04:00
James Cloos
38edd9839f fix typo in commit 40ed4eef 2008-07-13 17:54:47 -04:00
Peter Hutterer
53859ee4e4 Bump to 7.0.13. 2008-05-28 17:17:38 +09:30
Peter Hutterer
44e458285b Add GenericEvent and xGenericEvent definitions.
(cherry picked from commit 8a96cdca08db2563e8c4c7c9a110a3ab6d973fcc)
2008-05-22 09:23:39 +09:30
Jeremy Huddleston
22878c30d2 Apple: Added a comment to explain _DARWIN_C_SOURCE 2008-05-08 15:02:41 -07:00
Jeremy Huddleston
e3035a7e6e Apple: Define _DARWIN_C_SOURCE otherwise _XOPEN_SOURCE, _POSIX_SOURCE, or _POSIX_C_SOURCE will cause fd_mask to not be defined due to the strict namespace 2008-05-08 12:16:15 -07:00
Jeremy Huddleston
05b119d78e Apple: Cleaned up some Apple definitions 2008-05-08 11:36:03 -07:00
Alan Hourihane
c879dab58f avoid checking for fds_bits on mingw 2008-04-29 00:37:28 +01:00
Colin Harrison
8642ec676d Use Sleep() instead of sleep() on windows
(was already done in Xwindows.h, just not Xw32defs.h)
2008-04-26 18:21:41 +01:00
Colin Harrison
a893a6ac5d Use winsock2.h 2008-04-26 08:52:29 +01:00
Markus Kuhn
c705bab0f6 Added comment to slightly discourage the definition of ever more Unicode keysyms 2008-04-21 21:27:26 +01:00
James Cloos
44e24a27bc Add more dead key syms
Add dead keys to support input of the precomposed latin characters in
ISO 10747 which have ring, line, circumflex, tilde, breve or diaeresis
below.

This addresses:  https://bugs.freedesktop.org/show_bug.cgi?id=15446
2008-04-12 15:48:46 -04:00
James Cloos
07e83988ec Fix typo in XF86Keysym.h
Fix typo reported in https://bugs.freedesktop.org/show_bug.cgi?id=11193
thereby making XF86Keysym.h match libX11’s XKeysymDB.
2008-03-06 11:34:17 -05:00
Adam Jackson
d34310efef x11proto 7.0.12 2008-03-05 22:09:16 -05:00
Jeremy Huddleston
e4ad7a8080 Fixed #ifdef checks that were using i386 to use __i386__
"""
It's simply obsolete, sloppy, compiler namespace pollution.  The
compiler is not allowed to predefine symbols that might conflict with
ordinary identifiers.  For backwards compatibility gcc currently
predefines i386 when compiling for x86 32-bit (but not 64-bit), but that
will go away.  It is also not defined if you specify -ansi when invoking
the compiler, because then it is seriously standards compliant.  Other
compilers shouldn't define it either.  Correct code shouldn't rely on it
being defined.  However __i386__ is safe and proper.
"""
2008-02-10 19:07:49 -08:00
Jeremy Huddleston
e49280c1c3 Changed __DARWIN__ to __APPLE__ 2007-12-10 21:33:01 -08:00
Alan Coopersmith
5ae4d304ec Make Xalloca.h work with Sun C++ compiler 2007-10-30 18:45:01 -07:00
Ben Byer
5ccc711612 fd_mask needs to be defined on OS X, too 2007-10-30 18:40:47 -07:00
Daniel Stone
8be48ca399 Check headers before testing for fds_bits access method (bug #8442)
HP-UX doesn't have sys/select.h, so make sure we don't overzealously include
headers when we try to find out how to use fds_bits.
2007-09-24 12:29:19 +03:00
James Cloos
68e841fb4b bump to 7.0.11 2007-09-08 08:30:17 -04:00