[PATCH:synaptics 1/5] synclient: if no option is specified, assume -l

Peter Hutterer peter.hutterer at who-t.net
Mon Nov 2 19:49:09 PST 2009


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

diff --git a/man/synclient.man b/man/synclient.man
index 610b101..8169771 100644
--- a/man/synclient.man
+++ b/man/synclient.man
@@ -96,7 +96,7 @@ positions, called gdx and gdy.
 .RE
 .TP
 \fB\-l\fR
-List current user settings.
+List current user settings. This is the default if no option is given.
 .TP
 \fB\-V\fR
 Print version number and exit.
diff --git a/tools/synclient.c b/tools/synclient.c
index 032b129..316ae2c 100644
--- a/tools/synclient.c
+++ b/tools/synclient.c
@@ -581,6 +581,9 @@ main(int argc, char *argv[])
     Display *dpy;
     XDevice *dev;
 
+    if (argc == 1)
+        dump_settings = 1;
+
     /* Parse command line parameters */
     while ((c = getopt(argc, argv, "sm:hlV")) != -1) {
 	switch (c) {
-- 
1.6.5.1



More information about the xorg-devel mailing list