From 70afce0325f06e4c44377b3b78b93441675778db Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Tue, 19 Aug 2008 14:33:20 +0100 Subject: [PATCH] Cast shadows to SE. --- src/compositor/compositor-clutter.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/compositor/compositor-clutter.c b/src/compositor/compositor-clutter.c index da650d218..115d129be 100644 --- a/src/compositor/compositor-clutter.c +++ b/src/compositor/compositor-clutter.c @@ -32,8 +32,8 @@ #include #define SHADOW_RADIUS 8 #define SHADOW_OPACITY 0.9 -#define SHADOW_OFFSET_X (-SHADOW_RADIUS) -#define SHADOW_OFFSET_Y (-SHADOW_RADIUS) +#define SHADOW_OFFSET_X (SHADOW_RADIUS) +#define SHADOW_OFFSET_Y (SHADOW_RADIUS) #define MAX_TILE_SZ 8 /* Must be <= shaddow radius */ #define TILE_WIDTH (3*MAX_TILE_SZ) @@ -747,9 +747,7 @@ repair_win (MetaCompWindow *cw) clutter_actor_set_size (cw->actor, pxm_width, pxm_height); if (cw->shadow) - clutter_actor_set_size (cw->shadow, - pxm_width + (2 * SHADOW_RADIUS), - pxm_height + (2 * SHADOW_RADIUS)); + clutter_actor_set_size (cw->shadow, pxm_width, pxm_height); clutter_actor_show (cw->actor); }