diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:17 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:17 +0000 |
commit | b6c5bf83f4b1b89c9d5015c084de1776a36891f1 (patch) | |
tree | 3ab4e00e19259e9ad646554cdf38a9158e1488b6 | |
parent | 603734e7dff1f89e2518994fa76c93a6c168e1bb (diff) |
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330
-rw-r--r-- | xset.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -27,7 +27,7 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ -/* $XFree86: xc/programs/xset/xset.c,v 3.30 2003/02/06 18:48:17 dawes Exp $ */ +/* $XFree86: xc/programs/xset/xset.c,v 3.32 2003/09/24 02:43:39 dawes Exp $ */ /* Modified by Stephen so keyboard rate is set using XKB extensions */ #include <stdio.h> @@ -487,15 +487,15 @@ for (i = 1; i < argc; ) { } arg = argv[i]; if (*arg >= '0' && *arg <= '9') { - sscanf(arg, "%hd", &standby_timeout); + sscanf(arg, "%hu", &standby_timeout); i++; arg = argv[i]; if ((arg)&&(*arg >= '0' && *arg <= '9')) { - sscanf(arg, "%hd", &suspend_timeout); + sscanf(arg, "%hu", &suspend_timeout); i++; arg = argv[i]; if ((arg)&&(*arg >= '0' && *arg <= '9')) { - sscanf(arg, "%hd", &off_timeout); + sscanf(arg, "%hu", &off_timeout); i++; arg = argv[i]; } @@ -691,8 +691,8 @@ for (i = 1; i < argc; ) { #if defined(XF86MISC) || defined(XKB) else if (strcmp(arg, "rate") == 0) { /* ...or this one. */ int delay = 0, rate = 0; - int rate_set = 0; #ifdef XF86MISC + int rate_set = 0; if (XF86MiscQueryVersion(dpy, &major, &minor)) { delay=KBDDELAY_DEFAULT, rate=KBDRATE_DEFAULT; } else { @@ -728,7 +728,9 @@ for (i = 1; i < argc; ) { #ifdef XKB if (xkbpresent) { xkbset_repeatrate(dpy, delay, 1000/rate); +#ifdef XF86MISC rate_set = 1; +#endif } #endif #ifdef XF86MISC |