Clip exposed area to the visible region.

This avoids extra work, and it means we won't allocate large pixmaps
for double buffering.
This commit is contained in:
Alexander Larsson 2009-01-22 15:18:03 +01:00
parent 7da48afcaa
commit 815f0d7605

View File

@ -4430,6 +4430,9 @@ gdk_window_process_updates_internal (GdkWindow *window)
GdkRegion *window_region;
gboolean end_implicit;
/* Clip to part visible in toplevel */
gdk_region_intersect (update_area, private->clip_region);
if (debug_updates)
{
/* Make sure we see the red invalid area before redrawing. */