[gtk+/wip/chergert/quartz-frame-clock: 228/228] Revert "gdk: micro optimization during process updates"



commit ce4d6f7c5663a797b3d681eea4a3838a326e5960
Author: Christian Hergert <christian hergert me>
Date:   Mon Sep 14 01:49:45 2015 -0700

    Revert "gdk: micro optimization during process updates"
    
    This reverts commit a2ceb412a78c93c7e62982675644d48e45d95e07.

 gdk/gdkwindow.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 9c1d3ae..57e2c30 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -3605,7 +3605,7 @@ _gdk_window_process_updates_recurse_helper (GdkWindow *window,
   /* Iterate over children, starting at bottommost */
   for (l = last_link; l != NULL; l = l->prev)
     {
-      child = g_ptr_array_index (children, i - 1);
+      child = l->data;
 
       if (child->destroyed || !GDK_WINDOW_IS_MAPPED (child) || child->input_only || child->composited)
         continue;
@@ -3631,7 +3631,6 @@ _gdk_window_process_updates_recurse_helper (GdkWindow *window,
       g_object_unref (children[i]);
     }
 
-
   g_free (free_children);
 
  out:


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