After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 655812 - St: fix container paint volumes
St: fix container paint volumes
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: st
unspecified
Other All
: Normal normal
: ---
Assigned To: Florian Müllner
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-08-02 13:49 UTC by Dan Winship
Modified: 2011-08-03 13:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
St: fix container paint volumes (6.71 KB, patch)
2011-08-02 13:49 UTC, Dan Winship
committed Details | Review

Description Dan Winship 2011-08-02 13:49:55 UTC
I don't have an easy test case for this; it showed up in the on-screen
keyboard with a bunch of local patches. (The top of the message tray
would get clipped when a summary notification bubble was popped up,
because the tray is drawn at negative coordinates relative to its
container.) But anyway, the comments in clutter-box.c say that this is
what you're supposed to do.

(This patch leaves ShellStack still broken, but bug 646934 would fix
that.)
Comment 1 Dan Winship 2011-08-02 13:49:57 UTC
Created attachment 193065 [details] [review]
St: fix container paint volumes

If a container is not clip-to-allocation, then its get_paint_volume()
needs to include the paint volumes of all of its children, since they
(or their children) may paint outside the container's allocation.

Also, if the superclass get_paint_volume() returns FALSE, then the
subclass should return FALSE too.
Comment 2 Florian Müllner 2011-08-03 00:49:38 UTC
Review of attachment 193065 [details] [review]:

Looks good.

::: src/st/st-container.c
@@ +441,3 @@
+    {
+      /* Based on ClutterGroup/ClutterBox; include the children's
+       * paint volumes, since they may color outside the lines.

"color outside the lines" sounds a bit confusing - "paint outside the allocation"?
Comment 4 Dan Winship 2011-08-03 13:17:22 UTC
pushed with clearer comment

Attachment 193065 [details] pushed as dbeab0e - St: fix container paint volumes