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:
@ -4430,6 +4430,9 @@ gdk_window_process_updates_internal (GdkWindow *window)
|
|||||||
GdkRegion *window_region;
|
GdkRegion *window_region;
|
||||||
gboolean end_implicit;
|
gboolean end_implicit;
|
||||||
|
|
||||||
|
/* Clip to part visible in toplevel */
|
||||||
|
gdk_region_intersect (update_area, private->clip_region);
|
||||||
|
|
||||||
if (debug_updates)
|
if (debug_updates)
|
||||||
{
|
{
|
||||||
/* Make sure we see the red invalid area before redrawing. */
|
/* Make sure we see the red invalid area before redrawing. */
|
||||||
|
|||||||
Reference in New Issue
Block a user