Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gdkwindow-quartz.patch « gtk « patches « packages - github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: abf15e90be98e0a337ea3758a1404d401b234ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
git --diff a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index efc0672..85a6ef1 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -258,6 +258,9 @@ gdk_window_impl_quartz_begin_paint_region (GdkPaintable    *paintable,
     goto done;
 
   gdk_region_get_rectangles (clipped_and_offset_region, &rects, &n_rects);
+/* No rects, no point in going further */
+  if (n_rects == 0) 
+    goto done;
 
   if (bg_pixmap == NULL)
     {