summaryrefslogtreecommitdiff
path: root/src/backends/meta-stage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/meta-stage.c')
-rw-r--r--src/backends/meta-stage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backends/meta-stage.c b/src/backends/meta-stage.c
index f536fc23a..425926a7c 100644
--- a/src/backends/meta-stage.c
+++ b/src/backends/meta-stage.c
@@ -225,6 +225,11 @@ queue_redraw_clutter_rect (MetaStage *stage,
.height = ceilf (rect->size.height)
};
+ /* Since we're flooring the coordinates, we need to enlarge the clip by the
+ * difference between the actual coordinate and the floored value */
+ clip.width += ceilf (rect->origin.x - clip.x) * 2;
+ clip.height += ceilf (rect->origin.y - clip.y) * 2;
+
clutter_actor_queue_redraw_with_clip (CLUTTER_ACTOR (stage), &clip);
}