discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=30f3a753660b8424d418e31d76783c9f6a1ee2b5

commit 30f3a753660b8424d418e31d76783c9f6a1ee2b5
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed May 11 18:29:38 2016 -0400

    avoid infinitely looping when applying x11 window grouping
    
     #ThatTimeKainXFoundABug
---
 src/bin/e_comp_x.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index 834c472..dd2dea6 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -4314,9 +4314,9 @@ _e_comp_x_hook_client_fetch(void *d EINA_UNUSED, E_Client 
*ec)
                     ecl = ec->leader;
                   if (!ecl)
                     {
-                       E_Client *child = e_client_bottom_get();
+                       E_Client *child;
 
-                       do
+                       E_CLIENT_FOREACH(child)
                          {
                             if (child == ec) continue;
                             if (e_object_is_del(E_OBJECT(child))) continue;
@@ -4327,8 +4327,7 @@ _e_comp_x_hook_client_fetch(void *d EINA_UNUSED, E_Client 
*ec)
                                  ecl = child;
                                  break;
                               }
-                            child = e_client_above_get(child);
-                         } while (child);
+                         }
                     }
                   if (ecl)
                     {

-- 


Reply via email to