stack: Clip animation drawing

We use cairo_paint() when doing that and we don't want to overdraw the
content area.
This commit is contained in:
Benjamin Otte 2016-01-21 01:44:47 +01:00
parent a6845091f9
commit 6bb8da5564

View File

@ -2148,6 +2148,12 @@ gtk_stack_render (GtkCssGadget *gadget,
cairo_destroy (pattern_cr); cairo_destroy (pattern_cr);
} }
cairo_rectangle (cr,
0, 0,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));
cairo_clip (cr);
switch (priv->active_transition_type) switch (priv->active_transition_type)
{ {
case GTK_STACK_TRANSITION_TYPE_CROSSFADE: case GTK_STACK_TRANSITION_TYPE_CROSSFADE: