Don't send expose events if region is empty

This commit is contained in:
Alexander Larsson 2009-01-21 16:28:05 +01:00
parent 8a0ef57ba3
commit d82cee80c3

View File

@ -4389,7 +4389,8 @@ gdk_window_process_updates_recurse (GdkWindow *window,
gdk_region_destroy (child_region);
}
if (private->event_mask & GDK_EXPOSURE_MASK)
if (private->event_mask & GDK_EXPOSURE_MASK &&
!gdk_region_empty (expose_region))
{
GdkEvent event;