From e89fafef577f4863f9fbda9481c435ce4910ed39 Mon Sep 17 00:00:00 2001 From: Javeed Shaikh Date: Sun, 17 Feb 2008 14:40:44 -0500 Subject: [PATCH] Allow the user to specify offsets for server-side (hard) shadows. --- xcompmgr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xcompmgr.c b/xcompmgr.c index 91ee807..c3a76cb 100644 --- a/xcompmgr.c +++ b/xcompmgr.c @@ -869,8 +869,8 @@ win_extents (Display *dpy, win *w) if (compMode == CompServerShadows) { - w->shadow_dx = 2; - w->shadow_dy = 7; + w->shadow_dx = shadowOffsetX; + w->shadow_dy = shadowOffsetY; w->shadow_width = w->a.width; w->shadow_height = w->a.height; } @@ -1945,8 +1945,8 @@ usage (char *program) 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, " -l left-offset\n Specifies the left offset for shadows. (default -15)\n"); + fprintf (stderr, " -t top-offset\n Specifies the top offset for 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");