diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2013-12-03 00:32:14 -0500 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2014-01-24 17:26:26 +0000 |
commit | 05b87e4a2fcaaeb69c25650e58c67b222e944275 (patch) | |
tree | f60146952acace2165c019590e9caa192a10d2f2 | |
parent | efddf53730a0714a28a567a988961a4ccfd01b9a (diff) | |
download | clutter-05b87e4a2fcaaeb69c25650e58c67b222e944275.tar.gz |
ClutterStage: Don't add empty actors to the stage clip
Currently, if an actor with an empty paint volume is queued for redraw, it
will union in the box +0+0x1x1 to the stage clip bounds - avoid that
by special casing empty paint volumes.
https://bugzilla.gnome.org/show_bug.cgi?id=719747
(cherry picked from commit a2551dfa602f938b168fdf23fb4d2fcef4f1d892)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
-rw-r--r-- | clutter/clutter-stage.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index 9d634bc6f..204fbe82f 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -1312,6 +1312,9 @@ clutter_stage_real_queue_redraw (ClutterActor *actor, return; } + if (redraw_clip->is_empty) + return; + _clutter_paint_volume_get_stage_paint_box (redraw_clip, stage, &bounding_box); |