From d740313b06409c38b7d88e2c3621af2720b89cae Mon Sep 17 00:00:00 2001 From: Pierre-Loup Griffais Date: Thu, 18 Dec 2014 12:57:34 -0800 Subject: [PATCH] steamcompmgr documentation fix. --- debian/changelog | 7 +++++++ src/steamcompmgr.c | 20 +++++--------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0917861..8779a7a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +steamos-compositor (1.25) alchemist; urgency=medium + + * Fix commandline argument descriptions and getopt call to match actual behavior. + Thanks to Wouter Wijsman for the fix! + + -- Pierre-Loup A. Griffais Thu, 18 Dec 2014 12:51:54 -0800 + steamos-compositor (1.24) alchemist; urgency=medium * Fix an issue where XCOM wouldn't focus on startup. diff --git a/src/steamcompmgr.c b/src/steamcompmgr.c index fc70e3a..73e0b2c 100644 --- a/src/steamcompmgr.c +++ b/src/steamcompmgr.c @@ -1657,21 +1657,11 @@ usage (char *program) fprintf (stderr, "usage: %s [options]\n", program); fprintf (stderr, "Options\n"); fprintf (stderr, " -d display\n Specifies which display should be managed.\n"); - fprintf (stderr, " -r radius\n Specifies the blur radius for client-side shadows. (default 12)\n"); - fprintf (stderr, " -o opacity\n Specifies the translucency for client-side shadows. (default .75)\n"); - fprintf (stderr, " -l left-offset\n Specifies the left offset for client-side shadows. (default -15)\n"); - fprintf (stderr, " -t top-offset\n Specifies the top offset for clinet-side shadows. (default -15)\n"); - fprintf (stderr, " -I fade-in-step\n Specifies the opacity change between steps while fading in. (default 0.028)\n"); - fprintf (stderr, " -O fade-out-step\n Specifies the opacity change between steps while fading out. (default 0.03)\n"); - fprintf (stderr, " -D fade-delta-time\n Specifies the time between steps in a fade in milliseconds. (default 10)\n"); - fprintf (stderr, " -a\n Use automatic server-side compositing. Faster, but no special effects.\n"); - fprintf (stderr, " -c\n Draw client-side shadows with fuzzy edges.\n"); - fprintf (stderr, " -C\n Avoid drawing shadows on dock/panel windows.\n"); - fprintf (stderr, " -f\n Fade windows in/out when opening/closing.\n"); - fprintf (stderr, " -F\n Fade windows during opacity changes.\n"); - fprintf (stderr, " -n\n Normal client-side compositing with transparency support\n"); - fprintf (stderr, " -s\n Draw server-side shadows with sharp edges.\n"); + fprintf (stderr, " -n\n Don't perform any redirection or compositing.\n"); fprintf (stderr, " -S\n Enable synchronous operation (for debugging).\n"); + fprintf (stderr, " -v\n Display debug information on screen.\n"); + fprintf (stderr, " -V\n Log events to standard output.\n"); + fprintf (stderr, " -u\n Allow unredirection of windows.\n"); exit (1); } @@ -1761,7 +1751,7 @@ main (int argc, char **argv) char *display = NULL; int o; - while ((o = getopt (argc, argv, "D:I:O:d:r:o:l:t:scnufFCaSvV")) != -1) + while ((o = getopt (argc, argv, "d:nuSvV")) != -1) { switch (o) { case 'd':