[gnome-shell] StShadowHelper: properly use the actor's box to paint the shadow
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] StShadowHelper: properly use the actor's box to paint the shadow
- Date: Thu, 23 Jun 2016 17:03:50 +0000 (UTC)
commit 3e93a1bdd6213e4d0ddf665452a6562c989030ae
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Jun 22 20:57:17 2016 +0200
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 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/st/st-shadow.c b/src/st/st-shadow.c
index 49e411c..dbd3f8e 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]