diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:22 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:22 +0000 |
commit | d568221710959cf7d783e6ff0fb80fb43a231124 (patch) | |
tree | 8d6f039393294c6ffac8533639afdebe5d68bfc1 /xkb/xkbAccessX.c | |
parent | 9508a382f8a9f241dab097d921b6d290c1c3a776 (diff) |
XFree86 4.3.0.1
Diffstat (limited to 'xkb/xkbAccessX.c')
-rw-r--r-- | xkb/xkbAccessX.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xkb/xkbAccessX.c b/xkb/xkbAccessX.c index 7596d068b..b83f8b626 100644 --- a/xkb/xkbAccessX.c +++ b/xkb/xkbAccessX.c @@ -24,16 +24,20 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ********************************************************/ +/* $XFree86: xc/programs/Xserver/xkb/xkbAccessX.c,v 1.9 2001/08/23 14:33:25 alanh Exp $ */ #include <stdio.h> #include <math.h> +#ifdef __QNX__ +#include <limits.h> +#endif #define NEED_EVENTS 1 #include <X11/X.h> #include <X11/Xproto.h> #include <X11/keysym.h> #include "inputstr.h" #include "XKBsrv.h" -#ifndef WIN32 +#if !defined(WIN32) && !defined(Lynx) #include <sys/time.h> #endif @@ -139,9 +143,6 @@ AccessXKeyboardEvent(keybd,type,keyCode,isRepeat) #endif { xEvent xE; -#ifdef XINPUT -extern int DeviceKeyPress; -#endif xE.u.u.type = type; xE.u.u.detail = keyCode; @@ -582,12 +583,11 @@ KeySym * sym = XkbKeySymsPtr(xkbi->desc,key); */ if (ctrls->enabled_ctrls & XkbSlowKeysMask) { xkbAccessXNotify ev; - /* If key was already pressed, ignore subsequent press events - * from the server's autorepeat + /* If key was already pressed, ignore subsequent press events + * from the server's autorepeat */ if(xkbi->slowKey == key) - return TRUE; - + return TRUE; ev.detail= XkbAXN_SKPress; ev.keycode= key; ev.slowKeysDelay= ctrls->slow_keys_delay; |