Index: xcompmgr.1 =================================================================== RCS file: /cvs/xapps/xcompmgr/xcompmgr.1,v retrieving revision 1.2 diff -u -r1.2 xcompmgr.1 --- xcompmgr.1 18 Sep 2004 00:13:15 -0000 1.2 +++ xcompmgr.1 18 Sep 2004 23:14:11 -0000 @@ -4,7 +4,7 @@ xcompmgr \- sample X compositing manager .SH SYNOPSIS .nf -.B xcompmgr [\-d display] [\-r radius] [\-o opacity] [\-l left-offset] [\-t top-offset] [\-acCfFnsS] +.B xcompmgr [\-d display] [\-r radius] [\-o opacity] [\-l left-offset] [\-t top-offset] [\-I fade-in-step] [\-O fade-out-step] [\-D fade-delta-time] [\-acCfFnsS] .fi .SH DESCRIPTION .B xcompmgr @@ -27,6 +27,16 @@ .BI \-t\ top-offset Specifies the top offset for client-side shadows. .TP +.BI \-I\ fade-in-step +Specifies how much the opacity of a window is changed per step while fading in. +.TP +.BI \-O\ fade-out-step +Specifies how much the opacity of a window is changed per step while fading +out. +.TP +.BI \-D\ fade-delta-time +Specifies the length of a single step in milliseconds. +.TP .BI \-a Automatic server-side compositing. This instructs the server to use the standard composition rules. Useful for debugging. Index: xcompmgr.c =================================================================== RCS file: /cvs/xapps/xcompmgr/xcompmgr.c,v retrieving revision 1.31 diff -u -r1.31 xcompmgr.c --- xcompmgr.c 18 Sep 2004 00:13:15 -0000 1.31 +++ xcompmgr.c 18 Sep 2004 23:14:12 -0000 @@ -1763,6 +1763,9 @@ 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 how much the opacity of a window is changed per step while fading in. (default 0.028)\n"); + fprintf (stderr, " -O fade-out-step\n Specifies how much the opacity of a window is changed per step while fading out. (default 0.03)\n"); + fprintf (stderr, " -D fade-delta-time\n Specifies the length of a single step 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"); @@ -1798,7 +1801,7 @@ char *display = 0; int o; - while ((o = getopt (argc, argv, "d:r:o:l:t:scnfFCaS")) != -1) + while ((o = getopt (argc, argv, "d:r:o:l:t:I:O:D:scnfFCaS")) != -1) { switch (o) { case 'd': @@ -1840,6 +1843,21 @@ case 't': shadowOffsetY = atoi (optarg); break; + case 'I': + fade_in_step = atof (optarg); + if (fade_in_step < 0.0) + fade_in_step = 0.0; + break; + case 'O': + fade_out_step = atof (optarg); + if (fade_out_step < 0.0) + fade_out_step = 0.0; + break; + case 'D': + fade_delta = atoi (optarg); + if (fade_delta < 1) + fade_delta = 1; + break; default: usage (argv[0]); break;