[gnome-shell] st-box-layout: Don't report a paint volume when we have no allocation
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st-box-layout: Don't report a paint volume when we have no allocation
- Date: Mon, 15 Sep 2014 15:35:26 +0000 (UTC)
commit aa6f352cb06d3ae8940af323f048c8c7886fa0cd
Author: Adel Gadllah <adel gadllah gmail com>
Date: Mon Sep 15 17:32:33 2014 +0200
st-box-layout: Don't report a paint volume when we have no allocation
src/st/st-box-layout.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c
index 91e93a5..cb4917f 100644
--- a/src/st/st-box-layout.c
+++ b/src/st/st-box-layout.c
@@ -495,6 +495,10 @@ st_box_layout_get_paint_volume (ClutterActor *actor,
ClutterActorBox content_box;
ClutterVertex origin;
+ /* Setting the paint volume does not make sense when we don't have any allocation */
+ if (!clutter_actor_has_allocation (actor))
+ return FALSE;
+
/* When have an adjustment we are clipped to the content box, so base
* our paint volume on that. */
if (priv->hadjustment || priv->vadjustment)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]