From 3e93a1bdd6213e4d0ddf665452a6562c989030ae Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Wed, 22 Jun 2016 20:57:17 +0200 Subject: [PATCH] StShadowHelper: properly use the actor's box to paint the shadow We're using an unitialized box resulting in an undefined shadow box size. _st_paint_shadow_with_opacity() already computes the shadow's bounding box from the source actor's box so we just need to pass that along. https://bugzilla.gnome.org/show_bug.cgi?id=767954 --- src/st/st-shadow.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/st/st-shadow.c b/src/st/st-shadow.c index 49e411ce5..dbd3f8e3a 100644 --- a/src/st/st-shadow.c +++ b/src/st/st-shadow.c @@ -287,13 +287,8 @@ st_shadow_helper_paint (StShadowHelper *helper, ClutterActorBox *actor_box, guint8 paint_opacity) { - ClutterActorBox allocation; - float width, height; - - clutter_actor_box_get_size (actor_box, &width, &height); - _st_paint_shadow_with_opacity (helper->shadow, helper->pipeline, - &allocation, + actor_box, paint_opacity); }