[PATCH 5/5] syndaemon: disable XRecord by default.

Peter Hutterer peter.hutterer at who-t.net
Sun Mar 1 18:46:40 PST 2009


XRecord is disabled in the server by default, so let's not have it as default
here.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 man/syndaemon.man |    6 +++---
 tools/syndaemon.c |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/man/syndaemon.man b/man/syndaemon.man
index df81231..1387f45 100644
--- a/man/syndaemon.man
+++ b/man/syndaemon.man
@@ -8,7 +8,7 @@ the touchpad when the keyboard is being used.
 .SH "SYNTAX"
 .LP
 syndaemon [\fI\-i idle\-time\fP] [\fI\-d\fP] [\fI\-p pid\-file\fP]
-[\fI\-t\fP] [\fI\-k\fP] [\fI\-K\fP] [\fI\-s\fP]
+[\fI\-t\fP] [\fI\-k\fP] [\fI\-K\fP] [\fI\-R\fP] [\fI\-s\fP]
 .SH "DESCRIPTION"
 .LP
 Disabling the touchpad while typing avoids unwanted movements of the
@@ -49,8 +49,8 @@ Like \-k but also ignore Modifier+Key combos.
 .LP
 .TP
 \fB\-R\fP
-Use of the XRecord extension for detecting keyboard activity instead of
-polling the keyboard state.
+Use the XRecord extension for detecting keyboard activity instead of polling
+the keyboard state.
 .LP
 .TP
 \fB\-s\fP
diff --git a/tools/syndaemon.c b/tools/syndaemon.c
index 498e634..273c224 100644
--- a/tools/syndaemon.c
+++ b/tools/syndaemon.c
@@ -77,7 +77,7 @@ usage(void)
     fprintf(stderr, "  -t Only disable tapping and scrolling, not mouse movements.\n");
     fprintf(stderr, "  -k Ignore modifier keys when monitoring keyboard activity.\n");
     fprintf(stderr, "  -K Like -k but also ignore Modifier+Key combos.\n");
-    fprintf(stderr, "  -R Don't use the XRecord extension.\n");
+    fprintf(stderr, "  -R Use the XRecord extension.\n");
     exit(1);
 }
 
@@ -540,7 +540,7 @@ main(int argc, char *argv[])
     double idle_time = 2.0;
     int poll_delay = 200000;	    /* 200 ms */
     int c;
-    int use_xrecord = 1;
+    int use_xrecord = 0;
 
     /* Parse command line parameters */
     while ((c = getopt(argc, argv, "i:m:dtp:kKR?")) != EOF) {
@@ -571,7 +571,7 @@ main(int argc, char *argv[])
             use_shm = 1;
             break;
 	case 'R':
-	    use_xrecord = 0;
+	    use_xrecord = 1;
 	    break;
 	default:
 	    usage();
-- 
1.6.0.6



More information about the xorg-devel mailing list