[gtk] Revert "Simplify gdk_surface_queue_render"



commit e91b930648fba3515c43514d4bbf38e771aeabc2
Author: Christian Hergert <chergert redhat com>
Date:   Wed Nov 4 16:28:13 2020 -0800

    Revert "Simplify gdk_surface_queue_render"
    
    This reverts commit 2120e9df880cabfe21d5a4e8c2d0e6804a4e09d8.

 gdk/gdksurface.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index e7689830fd..93e61d5c68 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1408,9 +1408,13 @@ impl_surface_add_update_area (GdkSurface     *impl_surface,
 void
 gdk_surface_queue_render (GdkSurface *surface)
 {
+  cairo_region_t *region;
+
   g_return_if_fail (GDK_IS_SURFACE (surface));
 
-  gdk_surface_invalidate_rect (surface, NULL);
+  region = cairo_region_create ();
+  impl_surface_add_update_area (surface, region);
+  cairo_region_destroy (region);
 }
 
 /*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]